关闭

Ubuntu 上 chkconfig 的替代物

3882人阅读 评论(0) 收藏 举报
分类:

参考:http://askubuntu.com/questions/2263/chkconfig-alternative-for-ubuntu-server

可以使用一个 sysv-rc-conf的工具。

Best alternative IMHO is sysv-rc-confTo install just need to run the command:

sudo apt-get install sysv-rc-conf

Once installed run the command:

sudo sysv-rc-conf

You can check or uncheck the options to start a service on any level of execution and may even stop or start the services from this console. It is an indispensable tool to enable or disable applications on an permanently way to boot your ubuntuIf you need a quick change, then you can use the CLI interface:

For example to stop ssh at levels 3 and 5 of execution:

sysv-rc-conf-off level 35 ssh

Atd to start in runlevels 2,3,4 and 5:

sysv-rc-conf on atd

If you want to know more:

man sysv-rc-conf

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:2281989次
    • 积分:27619
    • 等级:
    • 排名:第213名
    • 原创:433篇
    • 转载:1011篇
    • 译文:147篇
    • 评论:87条
    技术链接
    最新评论