In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the chkconfig command in Linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use the chkconfig command in Linux".
Chkconfig provides a command-line tool for maintaining / etc/rc [0room6] d folders, which reduces the burden of the system directly managing symbolic links in these folders. Chkconfig mainly includes five original functions: adding new services for system management, removing services for system management, listing the startup information of single-sign services, changing the startup information of services, and checking the startup status of special services. When the chkconfig command is run separately without any arguments, it will display the usage information of the service.
Necessary parameters
-- add starts the specified service program
-- del closes the specified service program
-- list lists all the services that chkconfig knows
Select parameters
-- level sets the level code of the service program, which is a string of 0,7 numbers, such as "- level35" for specified running levels 3 and 5.
-- help displays help information
-- version displays version information
Usage 1
The code is as follows:
[root@localhost www] # chkconfig-- list # View the list of system programs
[root@localhost www] # chkconfig httpd on # add httpd to boot boot
[root@localhost www] # chkconfig httpd off # shutdown httpd boot boot
Usage 2
The code is as follows:
[root@localhost tank] # chkconfig-- add nginx # add a nginx startup script for a service managed by chkconfig
[root@localhost tank] # chkconfig-- del nginx # removes the nginx startup service managed by chkconfig
Example:
After installing cent os 64-bit, there are not many unnecessary services by default, which are listed with the following command:
The code is as follows:
Chkconfig-- list | grep: on
Cups printing service yum-updatesd often takes up a lot of CPU and memory pcscd smart cards during busy times, such as SD card reader hidd and bluetooth Bluetooth cpuspeed intelligent adjustment CPU, notebook with gpm mouse copy and paste after the first installation of firstboot
The code is as follows:
Chkconfig cups off
Chkconfig yum-updatesd off
Chkconfig pcscd off
Chkconfig hidd off
Chkconfig bluetooth off
Chkconfig cpuspeed off
Chkconfig firstboot off
Chkconfig gpm off
The following content comes from the network and has not been verified for its function.
The code is as follows:
Chkconfig rhnsd off
Chkconfig anacron off
Chkconfig arptables_jf off
Chkconfig autofs off
Chkconfig openibd off
Chkconfig messagebus off
Chkconfig rawdevices off
Chkconfig canna off
Chkconfig atd off
Chkconfig iiim off
Chkconfig pcmcia off
Chkconfig haldaemon off
Chkconfig iptables off
Chkconfig mdmonitor off
Chkconfig hpoj off
# chkconfig nfslock off
Chkconfig acpid off
Chkconfig sendmail off
Chkconfig cups off
Chkconfig isdn off
Chkconfig irqbalance off
Chkconfig microcode_ctl off
Chkconfig cups-config-daemon off
Chkconfig ip6tables off
Other: shut down nfs related services and shut down rpc related services
Close
The code is as follows:
SELinux vi / etc/selinux/config
Thank you for your reading, the above is the content of "how to use the chkconfig command in Linux". After the study of this article, I believe you have a deeper understanding of how to use the chkconfig command in Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.