To speed up the shutdown of unnecessary System Services in Linux

Source: Internet
Author: User
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 startup, it will take time after the kernel is loaded into the memory and starts to run.

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 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.

Related Article

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.