Here, we don't know how to restart the server when using CENTOS7. Many of us operate directly on the server background panel. In fact, it is unnecessary. We can also operate on the SSH side.
1. Shutdown command
Shutdown command: shutdown or poweroff
Shutdown: shutdown - h now # Shut down immediately (shutdown - h 10 # Shut down after 10 minutes
2. Restart command
Restart command: shutdown or reboot
Shutdown: shutdown - r now # Restart now (shutdown - r+10 # Restart after 10 minutes)
Reboot: input directly.
Command: reboot
At this time, the password of the root account will be used for the restart. After the restart, please do not be careful that the server cannot get up. The server will start automatically in a few minutes