Restart linux web server using ssh

I closed my linux server with ssh command

~# shutdown -h now 

how can i restart the server again. I try different things, but they do not help. How to restart using ssh.

+4
source share
5 answers

You shut down the computer; it cannot be restarted from SSH. if it does not support Wake from Lan.

If you only want to restart the web server, use

apachectl restart

+3
source

reboot

or if you want to restart only apache then

/etc/init.d/apache2 restart

and if you want to shut down, instead of shutdown -h now you can just use poweroff

+22
source

You have disabled your server. If the server does not support the wake from lan option, you cannot disable it remotely.

To reboot the server, use the reboot command via ssh.

+3
source

Sorry, I canโ€™t tell you how to remotely turn on the server. But if you ask how to restart it next time, use "shutdown -r now"

0
source

It depends on which server it is and what means of remote access you have. If you have not personally created (or your colleagues) a server, you should contact the person who did it and ask them how to do it.

Perhaps they can charge a fee for this โ€œremote handsโ€ service if she has to physically access it (NB: the reboot is often handled by a separate system, many dedicated providers have their own systems for remote control of PDUs, etc. A virtualized server, may not need to request remote hands to reboot, as it can be handled by the hypervisor management interface, to which you may have some access).

0
source

All Articles