To shut down Red Hat Enterprise Linux, the root user may issue the /sbin/shutdown command. The shutdown man page has a complete list of options, but the two most common uses are:
/sbin/shutdown -h now
/sbin/shutdown -r now
After shutting everything down, the -h option halts the machine, and the -r option reboots.
PAM console users can use the reboot and halt commands to shut down the system while in runlevels 1 through 5. For more information about PAM console users, refer to the Red Hat Enterprise Linux Deployment Guide.
If the computer does not power itself down, be careful not to turn off the computer until a message appears indicating that the system is halted.
Failure to wait for this message can mean that not all the hard drive partitions are unmounted, which can lead to file system corruption.
如何安全地关闭Red Hat Enterprise Linux系统

本文详细介绍了使用root用户通过/sbin/shutdown命令安全地关闭Red Hat Enterprise Linux系统的步骤,包括使用-h选项使机器关机和使用-ro选项重新启动。同时提醒用户在系统完全关闭前等待指示信息,避免数据损坏。
1046

被折叠的 条评论
为什么被折叠?



