sudo yum install ntp

To make the ntpd start at boot time, use this commands:
sudo chkconfig ntpd on

After installation, edit the default ntp configuration:
sudo nano /etc/ntp.conf

Commented out/remove the default CentOS servers,you can add your own time-servers here to synchronize with, http://www.pool.ntp.org/zone/europe or http://www.pool.ntp.org/zone/north-america lists:

After you are done with the configuration, just start the ntp service:
sudo service ntpd start

To check if the NTP service is synchronizing:
sudo ntpq -pn

To check the synchronization log:
sudo tail -f /var/log/messages

Geeky Comparison with Windows clock after synchronization:

Hope this will help you!
No comments:
Post a Comment