若是要关机,必须保证当前系统中没有其余用户在线。能够经过who命令查看。服务器
正确的关机流程为:sync——>shutdown——>reboot——>haltspa
sync命令[sɪŋk]能够将数据由内存同步到硬盘中。内存
#shutdown -h 10 服务器将在10分钟后关机,且会显示在登录用户的当前屏幕中。同步
在10分钟以内系统管理员能够输入 shutdown -c 来取消此次的关机指令数据
#shutdown -h now 当即关机co
#shutdown -h 20:25 系统会在20:25关机sync
#shutdown -r now 当即重启background
#shutdown -r +10 十分钟后重启系统管理
#reboot 重启管理