我有一个CentOS 6 32位VPS,我想确定,我怎么知道哪些应用程序在启动时自动运行?
编辑:我已经尝试chkconfig --list但我不明白这些行意味着什么:
[root@server2 ~]# chkconfig --list dropbox 0:off 1:off 2:on 3:on 4:on 5:on 6:off httpd 0:off 1:off 2:off 3:on 4:off 5:off 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off modules_dep 0:off 1:off 2:on 3:on 4:on 5:on 6:off mysqld 0:off 1:off 2:on 3:on 4:off 5:on 6:off named 0:off 1:off 2:off 3:off 4:off 5:off 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:off 4:on 5:on 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off nginx 0:off 1:off 2:off 3:off 4:off 5:off 6:off nmb 0:off 1:off 2:off 3:off 4:off 5:off 6:off nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off openvpn 0:off 1:off 2:off 3:on 4:on 5:on 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off rpcbind 0:off 1:off 2:on 3:off 4:on 5:on 6:off rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off saslauthd 0:off 1:off 2:off 3:on 4:off 5:off 6:off smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off snmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off snmptrapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off udev-post 0:off 1:on 2:on 3:off 4:on 5:on 6:off xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
使用命令运行级别来查找运行级别,这是打开或closures之前的数字。 所以如果你的运行级别是2,你可以从上面的输出grep 2:on,find所有的服务。 通常运行级别在/ etc / inittab中设置,但可以更改。
0-6列是你的运行级别。 基本上,这些列表示在哪个系统阶段或运行级别启动/停止哪些服务。
另见: http : //en.wikipedia.org/wiki/Runlevel
https://serverfault.com/search?q=what+is+a+runlevel
大多数系统/服务器在运行级别3上运行,也就是inittab中的'init:3'。