关键词搜索

全站搜索
×
密码登录在这里
×
注册会员

已有账号? 请点击

忘记密码

已有账号? 请点击

使用其他方式登录

linux手册

linux shutdown命令–关闭服务器

shutdown命令用来系统关机命令。shutdown指令可以关闭所有程序,并依用户的需要,进行重新开机或关机的动作。

语法格式:shutdown [选项] [参数]

常用参数:

-c 当执行“shutdown -h 11:50”指令时,只要按+键就可以中断关机的指令
-f 重新启动时不执行fsck
-F 重新启动时执行fsck
-h 将系统关机
-k 只是送出信息给所有用户,但不会实际关机
-n 不调用init程序进行关机,而由shutdown自己进行
-r shutdown之后重新启动
-t 送出警告信息和删除信息之间要延迟多少秒

参考实例

指定现在立即关机:

[root@linuxcool ~]# shutdown -h now 

指定5分钟后关机,同时送出警告信息给登入用户:

[root@linuxcool ~]# shutdown +5 "System will shutdown after 5 minutes" 

取消按预定时间关闭系统:

[root@linuxcool ~]# shutdown -c 

重启服务器:

[root@linuxcool ~]# shutdown -r now 

按预定时间关闭系统:

[root@linuxcool ~]# shutdown -h hours:minutes
点击QQ咨询
开通会员
上传资源赚钱
返回顶部
×
  • 微信支付
  • 支付宝付款
扫码支付
微信扫码支付
请使用微信描二维码支付
×

提示信息

×

选择支付方式

  • 微信支付
  • 支付宝付款
确定支付下载