1. Use chkconfig -- list to view installed services. For example, I want to minimize some services after installation.
[[Email protected] ~] # Chkconfig -- list
Auditd 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Crond 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Ip6tables 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Iptables 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
The lvm2-monitor 0: off 1: On 2: On 3: On 4: On 5: on 6: Off
Netconsole 0: off 1: off 2: off 3: off 4: off 5: off 6: Off
Netfs 0: off 1: off 2: off 3: On 4: On 5: on 6: Off
Network 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Postfix 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Rdisc 0: off 1: off 2: off 3: off 4: off 5: off 6: Off
Restorecond 0: off 1: off 2: off 3: off 4: off 5: off 6: Off
Rsyslog 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Saslauthd 0: off 1: off 2: off 3: off 4: off 5: off 6: Off
Squid 0: off 1: off 2: off 3: off 4: off 5: off 6: Off
Sshd 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Udev-post 0: off 1: On 2: On 3: On 4: On 5: on 6: Off
2. view the default startup mode of the current system.
[[Email protected] ~] # Cat/etc/inittab
ID: 3: initdefault: # enter the command line mode when the mode is 3.
3. Use the chkconfig service name off to disable service startup.
4. Explanation of basic centos services:
Service name function default suggestion remarks
NetworkManager is used to automatically connect to and close the network. It is useless to the server.
Acpid Power Supply switch and other Detection Management turn off is useless to the server
Anacron enables scheduled task management
Apmd advanced power management enabled
ATD enables or disables a command at a specified time. If crond is used, it can be disabled.
Auditd enables customization. If SELinux is used, you need to enable it.
The AutoFS file system can be automatically loaded and detached.
Avahi-daemon Local Network Service lookup and disabling is useless to servers
Avahi-dnsconfd avahi it is useless for the server to disable DNS.
Enabling or disabling bluetooth wireless communication is useless to servers
It is useless to close the conman Console Management.
Use spuspeed to adjust CPU speed and enable Customization
It is useful to enable crond scheduled task management.
Cups General UNIX Printing Service is useless to servers when it is enabled or disabled
It is useless to disable dnsmasq DNS cache.
Dund Bluetooth disabled
Enable and disable the initial setting after the firstboot system is installed
You can enable the mouse on the GPM console.
Haldaemon hardware information collection service enabled
Disabled for Bluetooth
Disable ibmasm IBM Hardware Management
Disable ip6tables IPv6 Firewall
Disable iptables IPv4 Firewall
Disable IrDA Infrared Communication
Irqbalance CPU load balancing to enable custom multi-core CPU needs
Kudzu Hardware change detection enabling and disabling the server is useless
Lvm2-monitor LVM monitoring turn off non-cluster useless
When SELinux is enabled, mcstrans checks whether context is enabled or disabled.
Disable mdmonitor soft RAID monitoring
Disable mdmpd soft RAID Management
Messagebus is responsible for enabling message transmission between various system processes. if disabled, haldaemon will fail to start.
Microcode_ctl CPU microcode management upgrade enabled and Disabled
Disable multipathd
Disable netconsole
Disable netfs NFS
Disable netplugd network hot swapping monitoring
Enable Network
Disable NFS Network File System
Enable or disable nfslock NFS
Nscd name cache, which should be closed for DNS
Oddjobd closed with D-BUS related
Disable pand Bluetooth
Disable pcscd PC/SC Smart Card daemon
Port map enabled and disabled when Portmap is used for NFS and NIS
Close psacct Load detection
Rawdevices raw device supports enabling
Rdisc automatically detects router Shutdown
Readahead_early Enabled
Close readahead_later
Disable restorecond SELinux
Disable rpcgssd NFS
Enable rpcidmapd RPC name to UID/GID Mapper to disable NFS-related
Disable rpcsvcgssd NFS
Close saslauthd SASL Certification Service
Disable sendmail
Smartd hard disk Automatic Detection daemon Enabled
Sshd Enabled
Syslog system logging process enabled
Disable tcsd
Disable wpa_supplicant Wireless authentication
Disable xfs x Windows
Ypbind Network Information Service client closed
Yum-updatesd Yum automatic upgrade enabled/disabled is dangerous for Servers
This article from the "Flying Pig" blog, please be sure to keep this source http://thinkpig007.blog.51cto.com/971471/1438136