现在停止和关闭有什么区别?

yum*_*yum 6 halt

halt 可以关掉机器,

shutdown now不会关闭,它只是注销root

有谁知道原因吗?

use*_*517 7

在现代 Linux 系统上,halt 调用shutdown并带有合适的参数 -h(halt)或 -r(reboot),它们相当于运行级别0 和 6。运行shutdown now将系统置于运行级别 1(单用户模式)。如果您想通过 shutdown 来停止系统,请使用shutdown -h now.

在 Solaris 10/11 上,停止是相当残酷的,它只是刷新磁盘缓存并关闭系统电源 - 不会尝试运行任何脚本或关闭 smf 设施。

其他系统也可能以不同的方式做事。