ntpdate[7656]: no server suitable for synchronization found解决

内容目录

阿里云的服务器突然集体出现这个报错,同步的时候,开始是去网上找原因

ntpdate -d  ntp.api.bz
18 Feb 23:39:26 ntpdate[7311]: ntpdate 4.2.6p5@1.2349-o Tue Jun 23 15:38:19 UTC 2020 (1)
Looking for host ntp.api.bz and service ntp
host found : 91.195.240.94
transmit(91.195.240.94)
transmit(91.195.240.94)
transmit(91.195.240.94)
transmit(91.195.240.94)
transmit(91.195.240.94)
91.195.240.94: Server dropped: no data
server 91.195.240.94, port 123
stratum 0, precision 0, leap 00, trust 000
refid [91.195.240.94], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Mon, Jan  1 1900  8:05:43.000
originate timestamp: 00000000.00000000  Mon, Jan  1 1900  8:05:43.000
transmit timestamp:  e79b6fb5.03f1bbc0  Sat, Feb 18 2023 23:39:33.015
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

18 Feb 23:39:35 ntpdate[7311]: no server suitable for synchronization found

 

方案大多就是关闭防火墙 删除notrust,但是查看/etc/ntp.conf 这个没有notrust

重启ntpd也不好使

换了好几个公共地址也不好使

最后查看/etc/ntp.conf里面有好多阿里云的ntp公共地址,使用他们的就可以了,估计阿里云屏蔽外部不安全地址吧

restrict ntp.aliyun.com nomodify notrap nopeer noquery
restrict ntp.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp1.aliyun.com nomodify notrap nopeer noquery
restrict ntp1.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp10.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp11.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp12.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp2.aliyun.com nomodify notrap nopeer noquery
restrict ntp2.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp3.aliyun.com nomodify notrap nopeer noquery
restrict ntp3.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp4.aliyun.com nomodify notrap nopeer noquery
restrict ntp4.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp5.aliyun.com nomodify notrap nopeer noquery
restrict ntp5.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp6.aliyun.com nomodify notrap nopeer noquery
restrict ntp6.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp7.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp8.cloud.aliyuncs.com nomodify notrap nopeer noquery
restrict ntp9.cloud.aliyuncs.com nomodify notrap nopeer noquery

 

ntpdate ntp.aliyun.com 解决

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注