
chkconfig結果中的0-6是什麼?
例子
chkconfig --list|grep iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
答案1
不同的數字對應於該服務的不同運作等級。
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.
維基百科如果您需要更多具體信息,有關於不同運行級別的詳細說明(它們的含義也可能根據基本系統而有所不同)。
答案2
這些是系統V運行等級。
答案3
這些數字表示運行等級決定啟動時執行哪個程序或程序。所有這些都在 /etc/inittab 中定義。 Linux 發行版有七種不同的運行級別,在啟動時 init 進程會檢查正在運行的運行級別,並在此基礎上執行進程和服務。 init是啟動過程的最後一步,負責服務的執行。
運行等級是一種系統狀態,通常可以透過在它們之間切換來完成對 Linux 的高階管理。