最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】命令行远程重启Linux服务器

服务器 crifan 8817浏览 0评论
折腾:
【已解决】wordpress主页出错:307 Internal Redirect和301 从磁盘缓存
期间,需要在ssh登录的远程Linux服务器的命令行中,重启服务器。
linux restart
How to Restart Linux Server From the Command Line {4 easy ways} (phoenixnap.com)
reboot
Reboot Linux System Command – nixCraft (cyberciti.biz)
sudo reboot
/sbin/reboot
/sbin/shutdown -r now
用:
sudo reboot
即可。
【总结】
命令行重启Linux,可以用:
sudo reboot
注意:
重启后,ssh登录的(SecureCRT)命令行窗口,会立刻失效。
想要重新远程ssh登录服务器,但是却反应。
是因为,远程Linux服务器重启到恢复可以支持你ssh连接,是需要等待一段时间的。
所以要有耐心,多等一会,再去尝试(用SecureCRT)通过ssh登录(重启后的)Linux。
不要以为是服务器出问题了。

转载请注明:在路上 » 【已解决】命令行远程重启Linux服务器

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
80 queries in 0.165 seconds, using 22.11MB memory