部分服务器厂商为了所谓的这安全,屏蔽了NTP同步时间的服务。现在可以使用 rdate 来解决。 yum -y install rdate rdate -s time-b.nist.gov cat > /etc/cron.daily/rdate << "EOF" #!/bin/sh rdate -s time-b.nist.gov /sbin/hwclock -w EOF chmod +x /etc/cron.daily/rdate