Disable a Linux server from SSH?

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
Points
28
I didn't find an option to disable my linux server in my hosting control panel to test somethings, my linux server is just stopped when I don't renew service. I would like to know what is the best way to stop my Linux server from SSH?
 

WSCallum

Member
Hosting Provider
Registered
Joined
Jul 5, 2018
Messages
43
Points
8
The command should be as simple as: shutdown
 

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
Points
28
simple as: shutdown
It didn't work. Like its asking me to shutdown in an exact time.

Code:
[root@srv ~]# shutdown
shutdown: time expected
Try `shutdown --help' for more information.
From the VPS control panel.
You are right, I forgot that it has a feature to restart from my server control panel.
 

radwebhosting

Well-known member
Hosting Provider
Registered
Joined
Jan 14, 2016
Messages
315
Points
28
You can access via console or IPMI if SSH is down
 

ITivan80

Well-known member
Registered
Joined
Jul 16, 2018
Messages
92
Points
8
You can also use the halt command in linux:

halt -p poweroff
halt -verbose which helps to troubleshoot the server

You could also use

halt ? to see other options.
 
Older Threads
Replies
9
Views
1,876
Replies
11
Views
3,555
Replies
11
Views
6,977
Replies
0
Views
1,054
Newer Threads
Replies
7
Views
1,820
Replies
2
Views
5,922
Replies
15
Views
4,266
Replies
6
Views
2,778
Latest Threads
Replies
0
Views
69
Replies
1
Views
66
Replies
0
Views
64
Replies
0
Views
117
Recommended Threads
Replies
1
Views
1,258
Replies
31
Views
12,214
Replies
14
Views
9,816
Replies
12
Views
4,985
Replies
0
Views
1,917

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

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