我有和debian运行NTP客户端,但这个客户重置date1970年,并没有在日志中显示任何错误。 这是我试过:1)date(显示1970年)2)停止NTP服务3)ntpdate与服务器作为参数(date/时间同步完美)4)date(显示我正确的date/时间)5)ntpd -qdate到1970年没有任何错误:/)
这是我的日志这些程序….我不知道如何解决这个问题,因为没有错误。
root@radarboxcomstation:~# date Thu Jan 1 00:01:57 UTC 1970 root@radarboxcomstation:~# ntpdate 0.pool.ntp.org 17 Jul 13:33:44 ntpdate[11163]: step time server 195.22.17.7 offset 1500298282.181552 sec root@radarboxcomstation:~# date Mon Jul 17 13:33:47 UTC 2017 root@radarboxcomstation:~# ntpd -q 17 Jul 13:33:51 ntpd[11165]: ntpd [email protected] Sun May 10 14:06:45 UTC 2015 (1): Starting 17 Jul 13:33:51 ntpd[11165]: Command line: ntpd -q 17 Jul 13:33:51 ntpd[11165]: proto: precision = 1.542 usec (-19) 17 Jul 13:33:51 ntpd[11165]: Listen and drop on 0 v6wildcard [::]:123 17 Jul 13:33:51 ntpd[11165]: Listen and drop on 1 v4wildcard 0.0.0.0:123 17 Jul 13:33:51 ntpd[11165]: Listen normally on 2 lo 127.0.0.1:123 17 Jul 13:33:51 ntpd[11165]: Listen normally on 3 eth0 10.161.68.1:123 17 Jul 13:33:51 ntpd[11165]: Listen normally on 4 lo [::1]:123 17 Jul 13:33:51 ntpd[11165]: Listen normally on 5 eth0 [fe80::16ee:9dff:fe00:118%2]:123 17 Jul 13:33:51 ntpd[11165]: Listening on routing socket on fd #22 for interface updates 17 Jul 13:33:51 ntpd[11165]: authreadkeys: file /etc/ntp/keys: No such file or directory restrict default: KOD does nothing without LIMITED. 17 Jul 13:33:51 ntpd[11165]: restrict default: KOD does nothing without LIMITED. restrict ::: KOD does nothing without LIMITED. 17 Jul 13:33:51 ntpd[11165]: restrict ::: KOD does nothing without LIMITED. 17 Jul 13:33:51 ntpd[11165]: switching logging to file /var/log/ntp.log 17 Jul 13:33:51 ntpd[11165]: 0.0.0.0 c016 06 restart 17 Jul 13:33:51 ntpd[11165]: DNS 0.pool.ntp.org -> 194.8.30.16 17 Jul 13:33:51 ntpd[11165]: DNS 1.pool.ntp.org -> 5.135.59.152 17 Jul 13:33:51 ntpd[11165]: DNS 2.pool.ntp.org -> 80.172.224.24 1 Jan 00:00:00 ntpd[11165]: ntpd: time set -1500298431.132100 s ntpd: time set -1500298431.132100s root@radarboxcomstation:~# date Thu Jan 1 00:00:03 UTC 1970 root@radarboxcomstation:~#