Standard Command to reboot my VPS?

rwsorensen

WMS Marketplace Seller
Joined
Mar 12, 2014
Messages
188
Points
18
Hello,

Could you show me a standard command to reboot my VPS?

for vps linux and centos system.

in my Putty program, i type

is it right?

and what about httpd restart command?
 

Inquestor

Well-known member
Joined
Feb 1, 2013
Messages
495
Points
63
Hello,

Could you show me a standard command to reboot my VPS?

for vps linux and centos system.

in my Putty program, i type



is it right?

and what about httpd restart command?
To reboot your system if running CentOS, goto Terminal, and then type the following; shutdown -r

The command "httpd restart" only restarts the apache/httpd server, not the entire server.
 

rwsorensen

WMS Marketplace Seller
Joined
Mar 12, 2014
Messages
188
Points
18
The text "shutdown -r" makes me feel not safe, I thought i will shutdown my vps and not restart :D

this command is common for all types of VPS?
 

Hassan

New member
Joined
Nov 11, 2014
Messages
706
Points
0
Normally, the shutdown command is used and recommended for rebooting the system on your web hosting. This command will give users advance warning so that they can save their work and cleanly terminating specific programs. The syntax is as following:
Code:
shutdown -r time "message"
Where:

-r : Reboot the system.
time : When to reboot. You can reboot immediately or after 2 minutes. It can be an absolute time in the format hh:mm, in which hh is the hour (1 or 2 digits) and mm is the minute of the hour (in wo digits). Second, it can be in the format +m, in which m is the number of minutes to wait. The word now is an alias for +0.
message: Send warning message to send to all users.

Steps to reboot the system

Use the following command to reboot system immediate as root user:
Code:
shutdown -r now
or

Code:
shutdown -r +0
Task: Reboot with warning message (recommended)

To reboot system in 5 minutes with the following warning message:
Code:
shutdown -r +5 "Server is going down for kernel upgrade. Please save your work ASAP."
 
Latest threads
Replies
2
Views
28
Replies
3
Views
22
Replies
1
Views
41
Replies
2
Views
30
Replies
6
Views
45

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

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