路漫漫其修远兮,吾将上下而求索!--屈原·离骚
调整Linux默认启动服务
上一篇 /
下一篇 2010-05-21 20:42:29
Linux默认安装完成后,启动了很多的服务,当服务器资源紧张时,可以停止一些系统进程,释放一些资源。
当然如果没有必要,建议还是保持默认配置就可以了。
使用root用户查看默认启动服务
#chkconfig --list
关于每个服务有什么用处,不同的发行版本,可能有细小的差别,在附件中给出了Linux部分系统默认服务的解释说明,供大家参考(来源于网络)。
下面给出一个优化RedHat AS 5.4默认启动进程的
shell。
#-- configprocess.sh --开始。如果有的服务要使用,请注释或删除相应命令
#!/bin/sh
chkconfig acpid off
chkconfig anacron off
chkconfig atd off
chkconfig autofs off
chkconfig avahi-daemon off
chkconfig bluetooth off
chkconfig cups off
chkconfig firstboot off
chkconfig gpm off
chkconfig haldaemon off
chkconfig hidd off
chkconfig hplip off
chkconfig ip6tables off
chkconfig iptables off
chkconfig irqbalance off
chkconfig isdn off
chkconfig kudzu off
chkconfig mcstrans off
chkconfig microcode_ctl off
chkconfig netfs off
chkconfig nfslock off
chkconfig pcscd off
chkconfig portmap off
chkconfig rawdevices off
chkconfig restorecond off
chkconfig rhnsd off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig sendmail off
chkconfig setroubleshoot off
chkconfig xend off
chkconfig xendomains off
chkconfig xfs off
chkconfig yum-updatesd off
#-- configprocess.sh --结束
相关阅读:
- 挂接(mount)命令的使用方法 (51testing, 2010-5-12)
- 一种关键字驱动的自动化测试框架 (fishy, 2010-5-12)
- Ubuntu操作系统弃火狐 或预装谷歌Chrome (51testing, 2010-5-17)
- Linux系统内存监控全面讲解 (51testing, 2010-5-17)
- Perl中调用Shell命令的方法 (smile665, 2010-5-18)
- 在Linux服务器上手工释放内存 (51testing, 2010-5-19)
- linux-文件按大小来排序 (fairylly, 2010-5-19)
- Linux基金会欢迎山寨厂商选用MeeGo系统 (51testing, 2010-5-20)
- Linux的系统监控利器——monit (51testing, 2010-5-20)
- PuTTY + Xming 远程使用Linux的图形程序 (wingle, 2010-5-21)
收藏
举报
TAG:
chkconfig
Linux
系统服务