What is the use of chkconfig in Linux
This article mainly introduces what is the use of chkconfig in Linux. It is very detailed and has a certain reference value. Interested friends must finish reading it!
These two commands may be included in most current Linux distributions. Chkconfig usage provides great convenience for us to control the services (daemons) in Linux. Let's take a look at the help of these two commands:
[root@localhost] # service-- help
Usage: service
< option >|-- status-all | [service_name [command |-- full-restart]]
[root@localhost] # chkconfig-- help
Chkconfig version 1.3.29-copyright (C) 1997-2000 Red Hat, Inc.
This software can be freely distributed under the condition of GNU Public license.
Chkconfig usage: chkconfig-- list [name]
Chkconfig-add
Chkconfig-del
Chkconfig [--level]
Sshd is not in the list of system services by default on my system, so their usage is illustrated with the sshd command:
Entering service sshd lists some of the actions available:
[root@localhost ~] # service sshd
Usage: / etc/init.d/sshd {start | stop | restart | reload | condrestart | status}
Start the sshd service:
Service sshd start
Stop the sshd service:
Service sshd stop
Add sshd to the list of services:
Chkconfig-add sshd
Enable sshd to power on and run automatically:
Chkconfig sshd on
You can also specify the run level of sshd through-- level.
The above is all the content of this article "what is the use of chkconfig in Linux?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!