ntp服务问题
Posted nodchen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ntp服务问题相关的知识,希望对你有一定的参考价值。
原本国内的主机直接指向阿里云就可以时间同步了 但是国外的主机
却有报错 这个报错还没有解决
1 Oct 03:47:30 ntpdate[20969]: no server suitable for synchronization found [[email protected] ~]# ntpq -c version ntpq [email protected] Fri Apr 13 12:52:30 UTC 2018 (1) [[email protected] ~]# ntpdate -d 120.25.115.20 1 Oct 03:47:22 ntpdate[20969]: ntpdate [email protected] Fri Apr 13 12:52:28 UTC 2018 (1) Looking for host 120.25.115.20 and service ntp host found : 120.25.115.20 transmit(120.25.115.20) transmit(120.25.115.20) transmit(120.25.115.20) transmit(120.25.115.20) transmit(120.25.115.20) 120.25.115.20: Server dropped: no data server 120.25.115.20, port 123 stratum 0, precision 0, leap 00, trust 000 refid [120.25.115.20], delay 0.00000, dispersion 64.00000 transmitted 4, in filter 4 reference time: 00000000.00000000 Sun, Dec 31 1899 19:00:00.000 originate timestamp: 00000000.00000000 Sun, Dec 31 1899 19:00:00.000 transmit timestamp: df5c4f90.a33c854e Mon, Oct 1 2018 3:47:28.637 filter delay: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 filter offset: 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 delay 0.00000, dispersion 64.00000 offset 0.000000
主要是红色圈出来的部分
###add at 18-10-01
echo ‘#time sync by nodchen at 18-09-30‘ >/var/spool/cron/root
echo ‘*/5 * * * * /usr/sbin/ntpdate ntp1.aliyun.com >/dev/null 2>&1‘ >/var/spool/cron/root
### add end 18-10-01
以上是关于ntp服务问题的主要内容,如果未能解决你的问题,请参考以下文章