linux-关机命令shutdown

选项:

-c:取消

-h:关机

-r:重启

shutdown -h now:立即关机。

shutdown -h 20:30:晚上8点半关机,定时关机。

shutdown -r now:立即重启。

其它关机命令(不建议使用,因为不管有无用户连接都关机,建议使用shutdown):

halt

poweroff:相当于直接端点

init 0

其它重启命令

reboot

init 6

你可能感兴趣的:(linux,linux,服务器,centos)