Install ntp:
# yum install ntpd (Redhat / CentOS)Edit setup file to have server of 10.3.1.1:
# apt-get install ntp (Debian)
# vi /etc/ntp.confForce sync time:
# ntpdate -b <IP OF NTP SERVER>Setup crontab to auto sync every 15 min:
# crontab -eTo set the timezone info edit the /etc/sysconfig/clock file and set the zone="Europe/London". Then link the localtime file to the correct zone with:
15 * * * * /usr/sbin/ntpd -q -u ntp:ntp
# ln -sf /usr/share/zoneinfo/Europe/London /etc/localtimeTo manually set the date use this command:
# date --set HH:MM:SS
No comments:
Post a Comment