RHEL 6とRHEL 7の違い
1714 ワード
実行レベル概念の区分
System V init運転レベル
Systemdターゲット名
さぎょう
0
シャットダウン
1
シングルユーザモード
2
レベル3と同等
3
マルチユーザのテキストインタフェース
4
レベル3と同等
5
マルチユーザのグラフィックインタフェース
6
再起動
emergency
緊急シェル
Systemctl管理サービスの起動、再起動、停止、再ロード、ステータス表示などの一般的なコマンド区分
System V initコマンド(RHEL 6)
Systemctlコマンド(RHEL 7)
さぎょう
サービスの開始
サービスの再起動
サービスの停止
プロファイルの再ロード(サービスを終了しない)
サービスステータスの表示
Systemctlサービス起動、起動しない、各レベルでのサービス起動状態の表示などの一般的なコマンドの設定
System V initコマンド(RHEL 6)
Systemctlコマンド(RHEL 7)
さぎょう
自動起動
自動的に起動しない
特定のサービスがPOSTのために自動的に起動しているかどうかを確認します.
各レベルでのサービスの開始と無効化の表示
System V init運転レベル
Systemdターゲット名
さぎょう
0
runlevel0.target, poweroff.target
シャットダウン
1
runlevel1.target, rescue.target
シングルユーザモード
2
runlevel2.target, multi-user.target
レベル3と同等
3
runlevel3.target, multi-user.target
マルチユーザのテキストインタフェース
4
runlevel4.target, multi-user.target
レベル3と同等
5
runlevel5.target, graphical.target
マルチユーザのグラフィックインタフェース
6
runlevel6.target, reboot.target
再起動
emergency
emergency.target
緊急シェル
Systemctl管理サービスの起動、再起動、停止、再ロード、ステータス表示などの一般的なコマンド区分
System V initコマンド(RHEL 6)
Systemctlコマンド(RHEL 7)
さぎょう
service foo start
systemctl start foo.service
サービスの開始
service foo restart
systemctl restart foo.service
サービスの再起動
service foo stop
systemctl stop foo.service
サービスの停止
service foo reload
systemctl reload foo.service
プロファイルの再ロード(サービスを終了しない)
service foo status
systemctl status foo.service
サービスステータスの表示
Systemctlサービス起動、起動しない、各レベルでのサービス起動状態の表示などの一般的なコマンドの設定
System V initコマンド(RHEL 6)
Systemctlコマンド(RHEL 7)
さぎょう
chkconfig foo on
systemctl enable foo.service
自動起動
chkconfig foo off
systemctl disable foo.service
自動的に起動しない
chkconfig foo
systemctl is-enabled foo.service
特定のサービスがPOSTのために自動的に起動しているかどうかを確認します.
chkconfig --list
systemctl list-unit-files --type=service
各レベルでのサービスの開始と無効化の表示