开发者社区 问答 正文

如何使用shutdown命令进行重启?

已解决

如何使用shutdown命令进行重启?

展开
收起
游客gkv5feo4nm3qc 2022-04-01 16:40:19 737 分享 版权
1 条回答
写回答
取消 提交回答
  • 推荐回答

    [root@localhost ~]# shutdown -r now

    #重启, now是现在重启的意思

    [root@localhost ~]# shutdown -r 05:30

    #指定时间重启,但会占用前台终端

    [root@localhost ~]# shutdown -r 05:30 &

    #把定义重启命令放入后台,&是后台的意思

    [root@localhost ~]# shutdown -c

    //取消定时重启

    [root@localhost ~]# shutdown -r +10

    #10分钟之后重启

    2022-04-01 16:40:58
    赞同 展开评论
问答地址: