chkconfig 级别说明

DD.*_*DD. 17 chkconfig runlevel

chkconfig 中的级别是什么意思?

例如

chkconfig --levels 235 httpd on
Run Code Online (Sandbox Code Playgroud)

Bar*_*Vos 25

这就是他们的意思:

0   Halt
1   Single-User mode
2   Multi-user mode console logins only (without networking)
3   Multi-User mode, console logins only
4   Not used/User-definable
5   Multi-User mode, with display manager as well as console logins (X11)
6   Reboot
Run Code Online (Sandbox Code Playgroud)

因此,当在 中指定运行级别时chkconfig,您会告诉服务它是否应该在某个运行级别中打开或关闭。