Article Title: to speed up the shutdown of unnecessary system services in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Linux System in/etc/rc. d/init. d defines a lot of system services to provide to users. By default, most of these services are started randomly, but many services are generally not required, or, if you do not configure it, it does not work at all, but because it is set to random start, after the kernel is loaded into the memory and starts to run, it will take time to start the corresponding processes of these services to greatly reduce the boot speed. Therefore, you can close these services to speed up the boot speed.
Most of the system services of different GNU linux versions are the same, but there are also some minor differences. Generally, about 50 services are provided.
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 also some, 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.