Sync Your Linux Server Time with Network Time Servers (NTP)

Main configuration file: /etc/ntp.conf

To update : ntpdate pool.ntp.org

If you face the below error:

a) the NTP socket is in use, exiting

service ntp stop 
ntpdate pool.ntp.org 
or
ntpdate -u 0.pool.ntp.org
service ntp start b) This time, you may face another error: ntpdate[31676]: step-systime: Operation not permitted

Solution (In openVZ)
Make sure the container has been stopped and run the following on the VPS Host, replace CTID with the ID of the VPS


		
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s