ラン・レベル(Linux)

ランレベルとは、Linuxの動作モードのこと。
ランレベルには0〜6の7種類がある。
run・level動作モード
0シャットダウン(システムの停止)
1シングルユーザーモード(rootのみ)
2ネットワークなしのマルチユーザーモード(Red Hat では未使用)
3通常のマルチユーザーモード(テキストログイン)
4未使用
5マルチユーザーモード(グラフィカルログイン)
6システムの再起動

/etc/inittab から
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)

サービスに対するアクセスの制御
コマンド内容
chkconfig --list|sortサービスの情報表示(ソート)
chkconfig --list httpdhttpdの情報
chkconfig httpd onhttpdのサービス起動設定
chkconfig httpd offhttpdのサービス終了設定

サービスの起動
/etc/rc.d/init.d/httpd/start   httpd 起動
(restart:再起動 stop:停止 reload:設定のリロード)
または
service httpd start   httpd 起動

[ホームページに戻る]  [Linux(Fedora)に戻る]