Linux chkconfig Command
The Linux chkconfig command is used to check and configure the various services on a system.
This is a program developed by Red Hat under the GPL license. It can query which system services the operating system runs at each runlevel, including various resident services.
Syntax
chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level <等级代号>][系统服务][on/off/reset]
Parameters:
- --add Add the specified system service so that the chkconfig command can manage it, and add the relevant data to the system startup configuration files at the same time.
- --del Delete the specified system service so that it is no longer managed by the chkconfig command, and remove the relevant data from the system startup configuration files at the same time.
- --level
Specify the runlevel in which the system service should be started or stopped.
Example
List all commands known to c hkconfig.
# chkconfig --list
Start a service.
# chkconfig telnet on //Enable Telnet service
# chkconfig --list //List all services known to chkconfig
Stop a service
# chkconfig telnet off // Disable Telnet service
# chkconfig --list // List all services known to chkconfig
Linux Command Reference