centos 7 restart code example Example 1: restart server centos reboot -h now Example 2: shutdown command rhel 7 # poweroff # systemctl poweroff