Health

Header Ads

How to restart/reboot the linux server ( 4 Methods )

 MANY ARTICLES IN ONE ARTICLE !!!! BOOM!!

So guys in this blog am going to tell you the tested ways of "How to restart the linux server "

I am going to cover the top 4 article of the Google ....

ARTICLE -1

How do I reboot my Linux based mostly system? How do I reboot a distant Linux system or server utilizing command line?



Linux comes with numerous utilities that permit a system administrator to reboot, halt or poweroff the system. One should be root or a member of the wheel group to run reboot command. This web page reveals easy methods to reboot Linux based mostly system utilizing the command line.

Linux system restart

To reboot Linux utilizing the command line:

To reboot the Linux system from a terminal session, register or “su”/”sudo” to the “root” account.

Then sort “sudo reboot” to reboot the field.

Anticipate a while and the Linux server will reboot itself

HOW TO REBOOT LINUX USING COMMAND LINE

Allow us to see examples in particulars.

Reboot Linux system command

You need to login as root consumer to reboot the system. Open the terminal utility (or login to distant field utilizing ssh shopper) and sort any one of many following command to reboot the system instantly:

# /sbin/reboot

OR

# /sbin/shutdown -r now

You may also use sudo command below Ubuntu/Debian/Fedora and different Linux based mostly distros:

$ sudo reboot

It's a good suggestion to offer notification to all logged-in customers that the system goes down and, throughout the final 5 minutes of TIME, new logins are prevented. Kind the next command:

# shutdown -r +5

Pattern output:

Broadcast message from vivek@cluster.orarac1.nixcraft.com

        (/dev/pts/1) at 13:21 ...

The system goes down for reboot in 5 minutes!

TIME could have totally different codecs, the commonest is just the phrase “now” which is able to convey the system down instantly. Different legitimate codecs are +m, the place m is the variety of minutes to attend till shutting down and hh:mm which specifies the time on the 24hr clock.

How do I reboot distant Linux server?

Merely login as the foundation consumer utilizing ssh command:

$ ssh root@remote-server-com /sbin/reboot

OR

$ ssh root@remote-server-com /sbin/shutdown -r now

Pattern outputs:

Connection to remote-server-com closed by distant host.

Get notification utilizing the ping command when remote-server-com comes on-line:

ping -a remote-server-com

It's potential to make use of sudo command together with regular consumer over ssh session too. The syntax is:

$ ssh -t vivek@remote-server-com /sbin/reboot

With out the -t you'll seen an error “sudo: no tty current and no askpass program specified“, therefore you have to go the -t to the ssh command.

Conclusion

This web page demonstrated easy methods to use reboot command on Linux to reboot the server or desktop for software program and kernel updates

.

ARTICLE -2

Linux shutdown / reboot command

On Linux, like all duties, the shutdown and restart operations may also be carried out from the command line. The instructions are shutdown, halt, poweroff, reboot and REISUB keystrokes.

On this put up I'm going to point out you easy methods to shutdown or restart a linux system utilizing these instructions. The instructions are helpful specifically when it's a must to reboot a distant linux server, the place solely shell entry is accessible and no gui. Servers typically want a restart when upgrades are put in or have to shutdown for different maintainance duties.

The instructions can be found on any linux system like centos, ubuntu, debian, fedora or suse and don't require the set up of any further packages.

Post a Comment

0 Comments