centos关机重启

centos关机重启


将数据由内存同步到硬盘中
sync

立马关机
shutdown –h now 或 halt、poweroff

1分钟后关机
shutdown –h 1 ‘shutdown after 1minute’

立马重启
shutdown –r now 或reboot

1分钟后重启
`shutdown –r 1 ‘reboot after 1minute’·

注意:不管是重启系统还是关闭系统,首先要运行sync命令,把内存中的数据写到磁盘中。

猜你喜欢

转载自blog.csdn.net/lzm1016733696/article/details/82717561