How to disable unnecessary system services in Linux

Source: Internet
Author: User
Tags syslog
Taking redhat9 as an example, most of the following system services can be shut down:
Cron (depending on the situation, sometimes required)
Anancron
Apmd
ATD
Autofs
Cups (with a printer)
GPM
ISDN
Kudzu
Netfs
Nfslock
PCMCIA
Portmap
Rawdevice
Rhnsd
Sendmail (you can disable the email server)
IPSec (without configuration, it does not provide security at all)
... There are some more, which are not listed here.
Redhat9.0 on my computer only starts the following system services
Vmware-tools (Virtual Machine)
Syslog (logging)
Network)
Randow (Protection)
Keytables (Extended keyboard)
Iptables (firewall on Linux)
XFS (Graphic window)
Xinetd (Super process, providing network services externally)
In this way, the boot speed is quite fast.
You can modify the service in two ways:
1. chnconfig command:
Use chkconfig -- list to check whether all system services are disabled or enabled.
Use chkconfig iptables on to set a random start service
Use chkconfig iptables off to set the service to be started randomly
2. Use setup to start the graphic setting tool to set whether or not to start the service randomly.
Note: This modification takes effect only after the machine is restarted. If you only need a service this time, but do not
Yes. You can use service start to start the service manually.
In/etc/syslog, the configuration file of the System Service has the same name as the executable file of the service. The service reads the configuration file to provide the service and can modify the configuration file to customize the service. For example, in/etc/syslog, the configuration file iptables with iptables stores firewall rules and denies access from other IP addresses to the local machine.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.