分OS 6时钟在未来3分35秒

我在linode上运行Cent OS 6 64位。

服务器(不正确):

date星期四8月29日11:41:00 BST 2013

客户端(正确):

dateThu Aug 29 11:37:25 BST 2013

正如你可以看到服务器时钟在未来。

到目前为止,我已经确保服务器在GMT时间运行

sudo ln -s /usr/share/zoneinfo/Europe/London /etc/localtime 

但没有喜悦,并且通过安装Linodebuild议的NPT。

215秒似乎不是格林威治标准时间的问题,因为我期望在将来/过去1小时的倍数。

有小费吗?

我会validation服务器时间是否与XEN主机同步

 echo 0 > /proc/sys/xen/independent_wallclock 

或者我会禁用此方法,并通过NTPconfiguration独立的时间同步

 echo 1 > /proc/sys/xen/independent_wallclock yum install ntp service ntpd start chkconfig ntpd on 

把这一行放在/etc/sysctl.conf中,使wallclock独立持久化

 xen.independent_wallclock = 0 

检查服务器时间

 # date 

检查同步服务器的连接性并查找时间差异:

 # ntpdate -q 0.rhel.pool.ntp.org 

手动与服务器同步时间:

 # ntpdate 0.rhel.pool.ntp.org 1.rhel.pool.ntp.org 

如果你想在启动时检查系统时间:

 # chkconfig ntpdate on 

更多信息:
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-Date_and_Time_Configuration-Command_Line_Configuration-Network_Time_Protocol.html