ubuntu14.04中安装chkconfig服务管理程序的方法
时间:2021-02-27 14:29:38|栏目:Linux|点击: 次
ubuntu中并没有chkconfig,但我们可以使用sysv-rc-conf代替
一、chkconfig安装
1.1 安装 sysv-rc-conf
#apt-get install sysv-rc-conf
1.2链接chkconfig
#cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig
二、测试
执行 chkconfig 命令
# chkconfig
ps:ubuntu使用chkconfig命令来管理服务
安装命令:
sudo apt-get install chkconfig
(可以用sysv-rc-conf代替)
在ubuntu下使用应该会出现这样的错误:
/sbin/insserv: No such file or directory
解决办法:sudo ln -s /usr/lib/insserv/insserv /sbin/insserv
总结
上一篇:centos7.6 安装Tomcat-8.5.39的方法
栏 目:Linux
下一篇:win2003下PHP使用preg_match_all导致apache崩溃问题的解决方法
本文标题:ubuntu14.04中安装chkconfig服务管理程序的方法
本文地址:http://www.codeinn.net/misctech/70609.html






