CentOS Linux install and configure NTP to synchronize the system clock
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
Turn on service
Synchronize the system clock with 0.pool.ntp.org server:
Start the NTP:
Note: If you are using VPS (anything other than dedicated server), you will see this issue repeatedly.In such case, it is better to use ntpupdate with crontab utility instead of nptd service – which may fail to work sometimes. I am writing as many users are having the same issue.
Here is how to implement:
Stop the ntpd processes
# /etc/init.d/ntpd stop
Create a shell script like this
>vi synctime
/usr/sbin/ntpdate ntp.xs4all.nl
Add an entry in cron job
>crontab -e
*/05 * * * * /home/work/scripts/crons/synctime > /dev/null 2>&1
It runs every five minutes and you are done!

Comments
No comments yet.