Ubuntu 上 chkconfig 的替代物

来源:互联网 发布:java哪些字符需要转义 编辑:程序博客网 时间:2024/06/06 02:14

参考: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
原创粉丝点击