RHEL 6とRHEL 7の違い

1714 ワード

実行レベル概念の区分
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
各レベルでのサービスの開始と無効化の表示