我的服务器提供商阻止了 NTP 端口,因为他们说有 NTP 攻击。现在我无法在我的 ubuntu 18.04 服务器中同步日期和时间。
如何同步时间?
这是ntpdate -q 0.pool.ntp.org
结果:
server 195.50.171.101, stratum 0, offset 0.000000, delay 0.00000
server 176.235.41.255, stratum 0, offset 0.000000, delay 0.00000
server 86.108.190.23, stratum 0, offset 0.000000, delay 0.00000
server 178.79.155.116, stratum 0, offset 0.000000, delay 0.00000
14 Nov 04:51:06 ntpdate[4027]: no server suitable for synchronization found
这是timedatectl
结果:
Local time: Sat 2020-11-14 05:22:44 EST
Universal time: Sat 2020-11-14 10:22:44 UTC
RTC time: Sat 2020-11-14 09:55:35
Time zone: America/New_York (EST, -0500)
System clock synchronized: no
systemd-timesyncd.service active: yes
RTC in local TZ: no