Install and configure NTP under CentOS Linux 5 server to synchronize the system clock
January 4th, 2009
No comments
You can easily install NTP (Network Time Protocol, a means of transmitting time signals over a computer network) using yum command under Redhat or CentOS/Fedora core Linux.
Login as the root user.
Type the following command to install ntp
# yum install ntp
Turn on service
# chkconfig ntpd on
Synchronize the system clock with 0.pool.ntp.org server:
# ntpdate pool.ntp.org
Start the NTP:
# /etc/init.d/ntpd start
Add a cronjob to update clock every hour.
# crontab -e
paste the following line:
* */1 * * * /usr/sbin/ntpdate pool.ntp.org > /dev/null 2>&1