同步没有延迟是这样的,IP是假的,安全起见
[root@machine-js-app3 ~]# ntpdate -d 80.12.64.89
11 Jun 15:14:04 ntpdate[19272]: ntpdate 4.2.4p8@1.1612-o Tue Jul 6 21:50:29 UTC 2010 (1)
Looking for host 80.12.64.89 and service ntp
host found : 80.12.64.89
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
server 80.12.64.89, port 123
stratum 4, precision -24, leap 00, trust 000
refid [80.12.64.89], delay 0.02609, dispersion 0.00000
transmitted 4, in filter 4
reference time: e0a8a80e.8aecd287 Mon, Jun 10 2019 17:57:34.542
originate timestamp: e0a9d33c.62d137d5 Tue, Jun 11 2019 15:14:04.386
transmit timestamp: e0a9d33c.627cb6d2 Tue, Jun 11 2019 15:14:04.384
filter delay: 0.02612 0.02611 0.02609 0.02611
0.00000 0.00000 0.00000 0.00000
filter offset: 0.001024 0.001015 0.001019 0.001006
0.000000 0.000000 0.000000 0.000000
delay 0.02609, dispersion 0.00000
offset 0.001019
11 Jun 15:14:04 ntpdate[19272]: adjust time server 80.12.64.89 offset 0.001019 sec
[root@machine-app1 ~]# ntpdate -d 8012.64.89
11 Jun 15:13:31 ntpdate[9551]: ntpdate 4.2.4p8@1.1612-o Tue Jul 6 21:50:29 UTC 2010 (1)
Looking for host 80.12.64.89 and service ntp
host found : 80.12.64.89
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
receive(80.12.64.89)
transmit(80.12.64.89)
server 80.12.64.89, port 123
stratum 4, precision -24, leap 00, trust 000
refid [80.12.64.89], delay 0.02605, dispersion 0.00003
transmitted 4, in filter 4
reference time: e0a8a80e.8aecd287 Mon, Jun 10 2019 17:57:34.542
originate timestamp: e0a9d32c.bbd9260e Tue, Jun 11 2019 15:13:48.733
transmit timestamp: e0a9d31b.f298274b Tue, Jun 11 2019 15:13:31.947
filter delay: 0.02609 0.02605 0.02608 0.02608
0.00000 0.00000 0.00000 0.00000
filter offset: 16.78571 16.78577 16.78582 16.78588
0.000000 0.000000 0.000000 0.000000
delay 0.02605, dispersion 0.00003
offset 16.785772
11 Jun 15:13:31 ntpdate[9551]: step time server 80.12.64.89 offset 16.785772 sec
延迟16s
查看下free -m交换分区的使用率,考虑交换分区使用过多
或者考虑NTP服务器端的文件句柄数太少,ulimit -n调到65535大小
在ntp.conf配置文件中,有server配置信息,如果是域名的,需要通过114.114.114.114解析才能通过。
cat /etc/resolv.conf
.....
114.114.114.114
在防火墙外侧需要添加让114.114.114.114通行的策略。