Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux chkconfig Command

Linux chkconfig Command

Linux Command Reference Linux Command Reference

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:

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 Linux Command Reference