美文网首页linux redhat & Oracle
reboot和 systemctl reboot有什么区别

reboot和 systemctl reboot有什么区别

作者: 重庆思庄 | 来源:发表于2019-11-05 14:49 被阅读0次

rhel7以后的版本,我们关闭数据库,使用 systemctl poweroff ,重启数据库使用 systemctl reboot,

当然,我们还是可以使用以前的命令 reboot,poweroff

那么,这些命令有什么区别呢

其实现在还可以用poweroff,其实是 rhel7提供的向后兼容吧了,poweroff,reboot只是一个 systemctl poweroff,systemctl reboot的一个连接

所以,当我们执行reboot时,其实,就是执行的 systemctl reboot.

相关文章

网友评论

    本文标题:reboot和 systemctl reboot有什么区别

    本文链接:https://www.haomeiwen.com/subject/miosbctx.html