ubuntu管理开机启动服务

使用系统自带的工具也可以管理系统的开机启动项,比如直接修改/etc/rc0.d~rc6.d和、/etc/rcS.d,S开头的表示启动,K开头的表示不启动。不过这种方式修改起来不太直观。可以使用另外一种方式,采用第三方工具rcconf的方式来管理开机启动项。
安装rcconf:

sudo apt-get install rcconf


使用rcconf:

sudo rcconf

如果提示:rcconf needs dialog or whiptail。可以输入命令:

sudo apt-get install dialog rcconf

解决。
再次输入命令:sudo rcconf,显示rcconf的管理界面
Screen Shot 2014-09-03 at 11.11.26 AM

可以使用空格来切换是否开机启动,回车键保存。

Leave a Comment

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax