Disable unnecessary services in CentOS
1. smartd checks hard disk faults. virtual hard disks cannot be checked using this service and are only useful for physical devices.
Service smartd stop // stop the service
Chkconfig smartd off // set not to start
2. apmd power management. It is useless for computers without UPS or battery.
Service apmd stop
Chkconfig apmd off
3. autofs automatic mounting service. Generally, the mounting required by the server is fixed. Unless it is for a special purpose, it is of little use.
Service autofs stop
Chkconfig autofs off
4. bluetooth, Server should not need to use bluetooth.
Service bluetooth stop
Chkconfig bluetooth off
5. cups printing. If printing is required, the machine needs to be enabled.
Service cups stop
Chkconfig cups off
6. iptable6. We recommend that you use the firewall to manage connections.
Service ip6table stop
Chkconfig ip6table off
7. iptable. We recommend that you use the firewall to manage connections.
Service iptable stop
Chkconfig iptable off
8. isdn, which must be used only when an ISDN environment needs to be established.
Service isdn stop
Chkconfig idsn off
9. hidd, some Bluetooth input devices, such as keyboard and mouse.
Service hidd stop
Chkconfig hidd off
10. pcscd is used for smart card. Currently, this type of machine is unavailable, so it is all switched off.
Service pcscd stop
Chkconfig pcscd off
11. pcmcia is used for pcmcia. Currently, pcmcia is rarely used for Server.
Service pcmcia off
Service pcmcia off
12. sendmail is a mail Transmission proxy program that can be closed.
Service sendmail stop
Chkconfig sendmail off
13. yum-updatesd, yum Automatic Upgrade Program. We recommend that you do not enable the host that has been launched.
Service yum-updatesd stop
Chkconfig yum-updatesd off