时间: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
总结