In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to speed up the operation under Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The Linux system defines a lot of system services to provide to users under / etc/rc.d/init.d. By default, most of these services are started randomly, but many services are generally not needed, or if you do not configure them, they do not work at all. However, because they are set to random startup, it will take time to start the corresponding processes of these services after the kernel is loaded into memory to run, thus greatly reducing the boot speed. So you can speed up the boot by shutting down these services.
Different GNU linux versions of the system services are mostly the same, but there will be some small differences, generally provide about 50 services.
Take redhat9 as an example, most of the following system services can be shut down:
Cron (sometimes required, depending on the situation)
Anancron
Apmd
Atd
Autofs
Cups (can not be turned off if there is a printer)
Gpm
Isdn
Kudzu
Netfs
Nfslock
Pcmcia
Portmap
Rawdevice
Rhnsd
Sendmail (if you want to be a mail server, you can leave it off)
Ipsec (no configuration, no security function at all)
.... There are some that are not listed here.
The redhat9.0 on my computer only starts the following system services
Vmware-tools (virtual machine)
Syslog (logging)
Network (for Internet use)
Randow (for protection)
Keytables (extended Keyboard)
Iptables (firewall on linux)
Xfs (graphics window)
Xinetd (Super process that provides network services to the outside)
It's pretty fast to start up this way.
You can modify a service in two ways:
1. Chnconfig directive:
Use chkconfig-- list to see if all system services on the system are turned off or on.
Randomly start the service through chkconfig iptables on settings
Set not to start the service randomly through chkconfig iptables off
two。 Start the drawing setup tool through setup to set whether you want to start the service at random
Note: this modification will not take effect until the machine is restarted. If you only need a service this time, but not the next time you turn it on
If necessary, you can start the service manually through the service service start.
The configuration file of the system service is in / etc/syslog, which has the same name as the executable file of the service. The service provides the service by reading the configuration file, and you can modify the configuration file to customize the service. For example, there is an iptables configuration file iptables in / etc/syslog, which stores firewall rules and can deny access to other ip addresses to the machine.
This is the end of the content of "how to speed up the running speed under Linux". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.