+-
linux – poweroff和halt之间有什么区别?
参见英文答案 > What is the difference between Halt and Shutdown commands?                                    5个
>             What is the difference between these commands for bringing down a Linux server?                                    3个
要关闭我的系统,我可以使用以下三个命令之一:

sudo halt

要么:

sudo poweroff

要么:

sudo shutdown -h now

这些命令之间有什么区别,或者它们只是彼此的别名?

最佳答案
halt终止所有进程并关闭cpu.

poweroff就像停止一样,但它也会关闭设备本身(灯光和PC上的所有东西).它向板上发送ACPI命令,然后向PSU发送,以切断电源.

shutdown就像poweroff,但它也运行关闭脚本.

资料来源:

https://serverfault.com/questions/191537/shutdown-what-is-difference-between-power-off-and-halt

http://osdir.com/ml/os.solaris.managers.summaries/2001-10/msg00027.html

点击查看更多相关文章

转载注明原文:linux – poweroff和halt之间有什么区别? - 乐贴网