如何在 CentOS 7/RHEL 7 上正常启动、重启和关闭系统

我们将学习如何引导、重启和关闭 Red Hat Enterprise 7 系统 (RHEL)

要重新启动系统,请运行以下命令之一:

# reboot
# systemctl reboot
# shutdown -r now
# init 6
# telinit 6

要关闭系统,执行以下命令之一:

# halt
# systemctl halt
# shutdown -h now
# init 0
# telinit 0

要关闭系统电源,请选择以下命令之一:

# poweroff
# systemctl poweroff
# systemctl --no -wall poweroff

要挂起系统,执行以下命令:

# systemctl suspend

要使系统休眠,执行:

# systemctl hibernate

要休眠和挂起系统,请运行以下命令:

# systemctl hybrid-sleep
日期:2020-06-02 22:18:20 来源:oir作者:oir