个人工具

UbuntuHelp:BootServices/zh

来自Ubuntu中文

杏林小草讨论 | 贡献2008年6月14日 (六) 20:45的版本

跳转至: 导航, 搜索

杏林小草注:Windows用户注意:Linux的服务体系和Windows的决然不同,请不要照搬Windows的经验,特别是对待同名/同性质服务。


停止启动不必要的服务

从方便用户的用意出发,Ubuntu在引导的过程中会启动很多服务。在这份服务列表中,可能有一些是你不想要的,甚至是根本派不上用场的。例如,你可能不需要ntpdate服务(自动从网络时间服务器上获取信息调整系统时间)。如果你没有Hp设备,那么Hp打印和扫描服务就显得多余。

除了增加开机时间,启动这些多余的服务并无多大害处。你可以禁止启动多余的服务,从而稍微加速开机过程。

我们可以借助易用的BUM(启动管理器)工具管理各种启动服务。当然,好的管理工具还有很多,比如sysv-rc-conf,这是一个基于ncurses终端图形库的小工具。但本文将重点关注BUM。

Installing BUM

BUM is available in the Universe repository

Running BUM

BUM needs super user privileges to run, so to start it use

sudo bum

and enter your password when required. BUM can take a while to start up so be prepared to wait for it a couple of minutes. IconsPage?action=AttachFile&do=get&target=IconDialog-Warning1.png Warning: Disabling some services will stop your system from booting or running properly. Within bum you can activate/deactivate the start of a service by simply clicking on the checkbox at the beginning of the line for each of the listed services. It may be sufficient to work on the first tab in BUM. However if you switch to the 'Services' tab, you will see a short explanation for each service, which might help to identify services you don't need. If you uncheck a service which is already running, you are asked whether it should be stopped. Remember, make sure you know what the service does before preventing it from running. e.g. it is most likely not a good idea to prevent the cupsys service from being started, if you want to print via cups. If in doubt, leave the service enabled until you've been able to find out more about it