Websitetemplate.org

Welcome > Linux > Miscellaneous > Time Syncronization - Setup

Time Syncronization - Setup

For RHEL/CentOS 4 and later, /etc/ntp.conf is already set up to work. If you cannot get to one of these default servers, or want to change them, go to lines 17-19, and edit appropriately. Then:
touch /var/lib/ntp/drift
chkconfig ntpd on
service ntpd start
cd /etc/cron.d
cat <ntpdate
# ensure clock is updated upon reboot
@reboot root /usr/sbin/ntpdate -u 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org
EOF


Content Copyright 2003-2014 George Toft