chkconfig结果中的0-6是什么?
例
chkconfig --list|grep iptables iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
不同的数字对应于该服务的不同运行级别。
ID Name Description --------------------------------------- 0 Halt Shuts down the system. 1 Single-user Mode Mode for administrative tasks. 2 Multi-user Mode Does not configure network interfaces and does not export networks services. 3 Multi-user Mode with Networking Starts the system normally. 4 Not used/User-definable For special purposes. 5 Start the system normally with appropriate display manager. (with GUI) Same as runlevel 3 + display manager. 6 Reboot Reboots the system.
如果您需要更具体的信息, 维基百科对不同的运行级别(根据基本系统的不同,其含义也可能有所不同)进行详细解释。
那些是System V的运行级别 。
这些数字是indiacate runlevels决定在启动时要执行哪个进程或程序。 所有这些东西都在/ etc / inittab中定义。 Linux发行版有七种不同的运行级别,在启动时init进程检查运行级别是否正在运行,并在此基础上执行进程和服务。 在引导过程中,init是负责执行服务的最后一步。
运行级别是一种系统状态,通常可以通过在Linux之间进行切换来完成对Linux的高级pipe理。