reboot和 systemctl reboot有什么区别

在rhel7之后的版本,咱们关闭数据库,使用 systemctl poweroff ,重启数据库使用 systemctl reboot,数据库

固然,咱们仍是能够使用之前的命令 reboot,poweroff数据

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

其实如今还能够用poweroff,实际上是 rhel7提供的向后兼容吧了,poweroff,reboot只是一个 systemctl poweroff,systemctl reboot的一个链接di

因此,当咱们执行reboot时,其实,就是执行的 systemctl reboot.版本