在rhel7之後的版本,咱們關閉數據庫,使用 systemctl poweroff ,重啓數據庫使用 systemctl reboot,數據庫
固然,咱們仍是能夠使用之前的命令 reboot,poweroff數據
那麼,這些命令有什麼區別呢兼容
其實如今還能夠用poweroff,實際上是 rhel7提供的向後兼容吧了,poweroff,reboot只是一個 systemctl poweroff,systemctl reboot的一個鏈接di
因此,當咱們執行reboot時,其實,就是執行的 systemctl reboot.版本