在Redhat Linux上你可以使用chkconfig方便的停止一些没有必要运行的服务,当然,这要视你的系统环境而定。
#Disable automounters
chkconfig -level 2345 amd off
#Disable unless this is a laptop
chkconfig -level 2345 apmd off
#Disable unless you want to run batch programs within certain loads
chkconfig -level 2345 atd off
#Disable unless you want emails of EVERY ARP on your network segment
chkconfig -level 2345 arpwatch off
#Disable unless you want boot diskless workstations
chkconfig -level 2345 bootparamd off
#Disable unless this machine will be a DHCP *SERVER*
chkconfig -level 2345 dhcpd off
#Disable unless this machine will be a full blown router
chkconfig -level 2345 gated off
#Disable unless this machine will be a WWW server
chkconfig -level 2345 httpd off
#Disable unless this machine uses a modularized kernel
# NOTE: Not needed for 2.2.x+ kernels
chkconfig -level 2345 kerneld off
#Disable unless you really want to configure remote machines via Linuxconf
chkconfig -level 2345 linuxconf off
#Disable unless this machine will be a print server
#(for the local or remote machine)
chkconfig -level 2345 lpd off
#Disable unless you really need the proprietary MC server
chkconfig -level 2345 mcserv off
#Disable unless this machine will be a database server
chkconfig -level 2345 mysql off
#Disable unless this machine will be a caching or full blown DNS server
chkconfig -level 2345 named off
#Disable unless this machine will be a NFS server
chkconfig -level 2345 nfs off
#Disable unless this machine is a laptop or the PC has PCMCIA cards
chkconfig -level 2345 pcmcia off
#Disable unless this machine will be an NFS server or needs RPC tools
chkconfig -level 2345 portmap off
#Disable all R-cmds
chkconfig -level 2345 rusersd off
chkconfig -level 2345 rwalld off
chkconfig -level 2345 rwhod off
#Disable unless this machine is a email server
chkconfig -level 345 sendmail off
#Disable unless this machine is a Samba (MS File&Print) server
chkconfig -level 345 smb off
#Disable unless this machine is to support SNMP
chkconfig -level 2345 snmpd off
#Disable unless this machine is a local/remote HTTP proxy server
chkconfig -level 2345 squid off
#Disable unless this machine will be running X-windows
chkconfig -level 2345 xfs off
#Disable unless this machine will be an NTP server
chkconfig -level 2345 xntpd off
#Disable unless this machine will be part of a NIS/YP domain
chkconfig -level 2345 ypbind off
chkconfig -level 2345 yppasswdd off
#Disable unless this machine will be a NIS/YP server
chkconfig -level 2345 ypserv off
marco.chan 于 2008-01-02 11:08:39发表:
纠正两个错误!
第一个:是"- -level",不是"-level"!
第二个:"-"是英文状态下的中横线!
[ 本帖最后由 marco.chan 于 2008-1-2 11:09 编辑 ]