NTP 时间服务器问题
小灰狼 2015-04-25 08:27:26 在一台CentOS 7的虚拟机上配置好了 ntpd 服务,希望用它来与公网上的时间服务器进行对时。
但是发现每次如果我用 date 命令修改了时间之后,ntpd 必须要重启服务才会修正时间。
[root@localhost ~]# systemctl restart ntpd
[root@localhost ~]# date
2015年 04月 25日 星期六 08:21:07 CST
[root@localhost ~]# date -s 08:11:00 -- 把当前时间减小10分钟
2015年 04月 25日 星期六 08:11:00 CST
[root@localhost ~]# date
2015年 04月 25日 星期六 08:11:01 CST
[root@localhost ~]# ntpstat
synchronised to NTP server (202.112.10.36) at stratum 4
time correct to within 8043 ms
polling server every 64 s
[root@localhost ~]# date
2015年 04月 25日 星期六 08:11:11 CST
[root@localhost ~]# date ----- 2分钟多一点之后再次查询时间
2015年 04月 25日 星期六 08:13:54 CST
[root@localhost ~]#
ntpstat 命令显示每64秒同步一次时钟,但是实际并没有这样啊