首页 > 代码库 > Linux chkconfig 命令详解

Linux chkconfig 命令详解

一、简介

chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。

二、安装

user@ae01:~$ sudo apt-get install chkconfig

三、用法

user@ae01:~$ chkconfig --helpusage:        chkconfig -A|--allservices              (together with -l: show all services)        chkconfig -t|--terse [names]            (shows the links)        chkconfig -e|--edit  [names]            (configure services)        chkconfig -s|--set   [name state]...    (configure services)        chkconfig -l|--list [--deps] [names]    (shows the links)        chkconfig -c|--check name [state]       (check state)        chkconfig -a|--add   [names]            (runs insserv)        chkconfig -d|--del   [names]            (runs insserv -r)        chkconfig -h|--help                     (print usage)        chkconfig -f|--force ...                (call insserv with -f)        chkconfig [name]           same as chkconfig -t        chkconfig name state...    same as chkconfig -s name stateuser@ae01:~$

 

Linux chkconfig 命令详解