BangkokVPS.com

×
×

Knowledgebase

The knowledgebase provides documentation written by our team. Please select a category or search for answers.

Articles

How do I synchronize date and time in linux console ?

Install ntpd
If ntpd is not installed use any one of the following command to install ntpd:

# yum install ntp


Configuration
You should at least set following parameter in /etc/ntp.conf config file:

# vi /etc/ntp.conf


Locate server parameter and set it as follows:

th.pool.ntp.org


You can synchronize the system clock to an NTP server immediately with following command:

# ntpdate th.pool.ntp.org


Output:

#12 Mar 15:14:51 ntpdate[16865]: adjust time server 158.108.32.17 offset 0.000366 sec


Save the file and restart the ntpd service:

# /etc/init.d/ntpd start
# chkconfig ntpd on

 

See all zones in Global.
http://www.pool.ntp.org

Was this article helpful?
Dislike0 Like0
Views: 761