在rhel7以后的版本,我们关闭数据库,使用 systemctl poweroff ,重启数据库使用 systemctl reboot,
当然,我们还是可以使用以前的命令 reboot,poweroff
那么,这些命令有什么区别呢
其实现在还可以用poweroff,其实是 rhel7提供的向后兼容吧了,poweroff,reboot只是一个 systemctl poweroff,systemctl reboot的一个连接
所以,当我们执行reboot时,其实,就是执行的 systemctl reboot.
网友评论