欢迎来到代码驿站!

Linux

当前位置:首页 > 服务器 > 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

总结

上一篇:centos7.6 安装Tomcat-8.5.39的方法

栏    目:Linux

下一篇:win2003下PHP使用preg_match_all导致apache崩溃问题的解决方法

本文标题:ubuntu14.04中安装chkconfig服务管理程序的方法

本文地址:http://www.codeinn.net/misctech/70609.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有