centOS关机重启,保存内存中数据

在关机前执行这个命令sync  (功能描述:将数据由内存同步到硬盘中)

shutdown 后面-h是关机10是10分钟的意思,后面单引号的东西是注释,改成-r是重启

[root@hadoop102 /]#shutdown –h 10 ‘This server will shutdown after 10 mins’

立即关机

[root@hadoop102 /]# shutdown –h now  或者 [root@hadoop102 /]#halt   或者[root@hadoop102 /]#poweroff

立即重启

[root@hadoop102 /]# shutdown –r now       或者   [root@hadoop102 /]# reboot 

猜你喜欢

转载自blog.csdn.net/kxj19980524/article/details/88781498