当前位置:主页 > 服务器 > Linux >

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

总结

您可能感兴趣的文章:

相关文章