
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
これらはSystem Vですランレベル。
答え3
これらの数字は、起動時にどのプロセスまたはプログラムを実行するかを決定するランレベルを示します。これらすべては /etc/inittab で定義されます。Linux ディストリビューションには 7 つの異なるランレベルがあり、起動時に init プロセスはどのランレベルが実行されているかを確認し、それに基づいてプロセスとサービスを実行します。ブート手順では、init はサービスの実行を担当する最後のステップです。
ランレベルは、通常、切り替えることで Linux 上の高度な管理を実行できるシステム状態です。