NTP Configuration on RedHat

Make sure its installed and enabled:
yum install ntp
chkconfig ntpd on
/etc/init.d/ntpd start

Config can be done in /etc/ntp.conf such adding local time servers:
server mytimeserver.com

You can instantly update the time from the timeserver by running:
ntpdate pool.ntp.org
ntpd -qg

If you get an error like:
5 Mar 14:09:24 ntpdate[19228]: the NTP socket is in use, exiting
It’s because you can’t manually sync the time with the ntpd service is running. Stop the service and try again.

You can leave a response, or trackback from your own site.

Leave a Reply