**Install ntpd**
If ntpd is not installed use any one of the following command to install ntpd:
# yum install ntp
OR
# up2date ntp
Configuration
You should at least set following parameter in /etc/ntp.conf config file:
server <Time Server Name or IP Address>
For example, open /etc/ntp.conf file using vi text editor:
# vi /etc/ntp.conf
Locate server parameter and set it as follows:
server pool.ntp.org
Save the file and restart the ntpd service:
# /etc/init.d/ntpd start
You can synchronize the system clock to an NTP server immediately with following command:
# ntpdate pool.ntp.org
Output:
5 May 14:36:01 ntpdate[5257]: adjust time server 61.206.115.3 offset -0.343242 sec
desc:
use ” ntpdate -u pool.ntp.org ”
If your server is behind firewall.