zoukankan      html  css  js  c++  java
  • 服务器重启

    shutdown - 建议使用的命令
    shutdown是最常用也是最安全的关机和重启命令,它会在关机之前调用fsck检查磁盘,其中-h和-r是最常用的参数:
    -h:停止系统服务并关机  
    -r: 停止系统服务后重启  
    其他:
    shutdown -h now  --立即关机  
    shutdown -h 10:53  --到10:53关机,如果该时间小于当前时间,则到隔天  
    shutdown -h +10  --10分钟后自动关机  
    shutdown -r now  --立即重启  
    shutdown -r +30 'The System Will Reboot in 30 Mins'   --30分钟后重启并发送通知给其它在线用户  
     
    reboot 
    reboot表示立即重启,效果等同于shutdown -r now
     
    poweroff
    poweroff表示立即关机,效果等同于shutdown -h now,在多用户模式下(Run Level 3)不建议使用。
     
    halt
    不理会目前系统状况下,进行硬件关机,一般不建议使用
  • 相关阅读:
    Spring-12-spring整合Mybatis
    Spring-11-AOP面向切面编程
    jQuery选择器之表单元素选择器
    phpsmarty分配变量
    angular
    ajax 第四步
    ajax第三步
    php+ajax+jq
    二十三种设计模式[4]
    二十三种设计模式[3]
  • 原文地址:https://www.cnblogs.com/mianbaoshu/p/14007142.html
Copyright © 2011-2022 走看看