命令使用说明:ntpdate time_server

time_server  是时间服务器地址,可以是域名,也可以是ip。

在网上找了几个时间服务器地址,但是同步总是报错服务器找不到:

24 Oct 22:08:33 ntpdate[3400]: no server suitable for synchronization found

最开始还以为是其他的什么原因, 因为不可能所有的服务器都找不到。

然后各种百度,关防火墙啊干什么的,都没用。

最后找到一篇帖子换了个时间服务器地址就好了,也是坑爹,自己折腾自己。

[root@CentOS logs]# ntpdate time-b.nist.gov
28 Oct 12:12:50 ntpdate[3404]: step time server 129.6.15.29 offset 309810.720083 sec

时间服务器

中国[China]    cn.ntp.org.cn    
中国教育网[China-EDU]    edu.ntp.org.cn
最后修改:2017 年 10 月 28 日
如果觉得我的文章对你有用,请随意赞赏