我已经尝试过投票最多的前 2 个答案如何使用 ntp 强制更新时钟?但都不起作用。
使用 ntpdate 不会显示任何日志,并且可以正常退出,而 ntpd 给出以下输出:
4 Nov 13:49:28 ntpd[4754]: ntpd [email protected] Tue Jun 7 20:34:16 UTC 2016 (1): Starting 4 Nov 13:49:28 ntpd[4754]: Command line: ntpd -gq 4 Nov 13:49:28 ntpd[4754]: proto: precision = 0.055 usec (-24) 4 Nov 13:49:28 ntpd[4754]: Listen and drop on 0 v6wildcard [::]:123 4 Nov 13:49:28 ntpd[4754]: Listen and drop on 1 v4wildcard 0.0.0.0:123 4 Nov 13:49:28 ntpd[4754]: Listen normally on 2 lo 127.0.0.1:123 4 Nov 13:49:28 ntpd[4754]: Listen normally on 3 enp1s0 172.25.34.243:123 4 Nov 13:49:28 ntpd[4754]: Listen normally on 4 wlp2s0 192.168.132.109:123 4 Nov 13:49:28 ntpd[4754]: Listen normally on 5 lo [::1]:123 4 Nov 13:49:28 ntpd[4754]: Listen normally on 6 enp1s0 [fe80::2ad2:44ff:feab:2d1e%2]:123 4 Nov 13:49:28 ntpd[4754]: Listen normally on 7 wlp2s0 [fe80::162d:27ff:fee8:e407%3]:123 4 Nov 13:49:28 ntpd[4754]: Listening on routing socket on fd #24 for interface updates 4 Nov 13:49:29 ntpd[4754]: Soliciting pool server 52.66.76.135 4 Nov 13:49:30 ntpd[4754]: Soliciting pool server 123.108.200.124 4 Nov 13:49:36 ntpd[4754]: Soliciting pool server 123.108.200.124 4 Nov 13:49:41 ntpd[4754]: Soliciting pool server 123.108.200.124 4 Nov 13:50:33 ntpd[4754]: Soliciting pool server 125.62.193.121 4 Nov 13:50:35 ntpd[4754]: Soliciting pool server 139.59.19.184 4 Nov 13:50:37 ntpd[4754]: Soliciting pool server 139.59.19.184 4 Nov 13:50:39 ntpd[4754]: Soliciting pool server 139.59.19.184 4 Nov 13:51:38 ntpd[4754]: Soliciting pool server 123.108.200.124 4 Nov 13:51:43 ntpd[4754]: Soliciting pool server 125.62.193.121 4 Nov 13:51:44 ntpd[4754]: Soliciting pool server 52.66.76.135 4 Nov 13:51:46 ntpd[4754]: Soliciting pool server 125.62.193.121 4 Nov 13:52:44 ntpd[4754]: Soliciting pool server 139.59.19.184 4 Nov 13:52:48 ntpd[4754]: Soliciting pool server 52.66.76.135 4 Nov 13:52:49 ntpd[4754]: Soliciting pool server 125.62.193.121 4 Nov 13:52:53 ntpd[4754]: Soliciting pool server 52.66.76.135 4 Nov 13:53:52 ntpd[4754]: Soliciting pool server 123.108.200.124 4 Nov 13:53:54 ntpd[4754]: Soliciting pool server 139.59.19.184 4 Nov 13:53:55 ntpd[4754]: Soliciting pool server 2401:dc00:100:136::34 4 Nov 13:53:58 ntpd[4754]: Soliciting pool server 125.62.193.121
并且长时间不停地持续。但这些都不起作用。我该怎么办?
使用timedatectl
提供:
Local time: Fri 2016-11-04 13:56:00 IST Universal time: Fri 2016-11-04 08:26:00 UTC RTC time: Fri 2016-11-04 08:26:00 Time zone: Asia/Kolkata (IST, +0530) Network time on: yes NTP synchronized: yes RTC in local TZ: no
实际时间为 20:26:00 IST 或 14:56:00 UTC。