Restart Server via SSH

Dr. McKay

Well-known member
Joined
Nov 26, 2016
Messages
339
Best answers
0
Ratings
22
Points
18
#1
Hi there, I am looking to restart the server via SSH i don't want to restart any services but i want to restart the whole my VPS server. Does someone post some useful ssh commands to restart my hosting server without using VPS web control panel? it would be great since I want to control my server by myself. Please share commands with detailed explanations.
 

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,517
Best answers
4
Ratings
392 12
Points
83
#2
It's something pretty hard to reboot a server.. :rolleyes2:
The command is :

Code:
reboot
 

fwh

Administrator
Staff Member
Joined
Dec 8, 2012
Messages
702
Best answers
0
Ratings
267 1
Points
63
#3
fwh
@VirtuBox, This command is correct to restart a VPS/dedicated server.

For me, I use this command.

Code:
shutdown -r now
 

Dr. McKay

Well-known member
Joined
Nov 26, 2016
Messages
339
Best answers
0
Ratings
22
Points
18
#5
Thanks you guys for share great commands!

+1 for fwh

shutdown -r now

shutdown tells server to shutdown
-r tells it to restart
now is when you want it to happen
Code:
shutdown [COLOR="#FF0000"]-r[/COLOR] now
-r seems is a parameter and there are also other parameters for this which i can add to the command?
 

racksandcloud

Well-known member
Joined
May 18, 2017
Messages
89
Best answers
0
Ratings
13
Points
0
#7
You can use the below commands to reboot the Linux machine.

$reboot

or

$init 6

or

$shutdown -r
 

macklong

Active member
Joined
Jun 17, 2016
Messages
67
Best answers
0
Ratings
4
Points
0
#8
What control panel you installed?

It's diff for cpanel / Plex or others.

if no cpanel then tell me what OS

Thanks
 
Newer Threads
Replies
15
Views
4,491
Replies
1
Views
679
Replies
37
Views
11,135
Replies
9
Views
8,212
Latest Threads
Replies
5
Views
40
fwh
Replies
9
Views
88
Replies
0
Views
31
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top