I have CentOS machine and each time I've noticed that the server loses correct time after a while. It is usually behind by several minutes after time passes from having manually set the correct time. Is there a mechanism whereby I can update the server with the time from a specific time server?
Centos – How to update a CentOS server’s time from an authoritative time server
centostime-synchronization
Related Topic
- Linux – Prevent Amazon EC2 Time zone from reverting back on yum update
- Centos – how to auto-run ntdpdate command
- Centos – Cannot change date/time on virtualized centos install without a reboot
- Linux – Server time off by 1 hour on linux CentOS 6.3 using NTP
- Centos – kernel warning in logs: set_rtc_mmss can’t update from 0 to 58
- Cisco – How come one of the switches is off by two minutes in spite of ntp
Best Answer
Use the
ntp
daemon. Runyum install ntp
and ensure that the service is started viantsysv
orchkconfig ntpd on
.To get an immediate sync, run
ntpdate time.apple.com
(or something similar).