Restarting a Windows Server:
-
Log in to the Server: Ensure you have the necessary administrative credentials to access the server.
-
Open Command Prompt: Press
Win + R
to open the Run dialog, typecmd
, and press Enter. This will open the Command Prompt. -
Enter Restart Command: Type the following command and press Enter:
shutdown /r /t 0
The
/r
flag indicates a restart, and/t 0
sets the delay to zero seconds. -
Confirm Restart: The system will initiate a restart immediately. If there are any open applications or unsaved data, the system will prompt you to confirm the restart.
-
Wait for Restart: Allow the server a few moments to complete the restart process. Once it's back online, you can log in and resume normal operations.
Restarting a Linux Server:
-
Connect to the Server: Use Secure Shell (SSH) or a physical console to connect to the Linux server with administrative privileges.
-
Open Terminal: If you're using a remote connection, open the terminal. If you're physically present, access the server directly.
-
Enter Restart Command: Type the following command and press Enter:
sudo reboot
You will be prompted to enter the sudo password to confirm the restart.
-
Confirm Restart: Press Enter after entering the password. The system will initiate a restart.
-
Wait for Restart: Allow the server to go through the shutdown and startup processes. Once the system is back online, you can reconnect and resume your tasks.