搜索

F.5. 关机

download PDF
要关闭 Red Hat Enterprise Linux, root 用户可以执行 /sbin/shutdown 命令。shutdown 的 man page 中有完整的选项列表,其中有两个最常用的选项:
/sbin/shutdown -h now
/sbin/shutdown -r now
在关闭所有程序后,-h 选项会停止机器,而 -r 选项则会重新引导机器。
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.
如果计算机没有自己关闭电源,在出现表示系统已经关闭的信息前不要不要关闭计算机。
如果没有看到这个信息,表示系统还没有卸载所有硬盘分区,此时关机有可能会导致文件系统崩溃。
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.