Questions tagged «ntpd»

0
我怎样才能将当地时间用作`ntpd`的唯一参考?
我想让我的Linux设备将其本地时间与另一台Linux服务器的本地时间同步,而不需要任何其他引用。我不关心实际时间。我想要我的假时间。因此我不需要任何其他ntp服务器作为参考。例如,我只是将我的Linux服务器的本地时间设置1.2.3.4为2033-02-23 15:23:10。我希望这次让我的Linux设备同步。/etc/ntp.confLinux服务器上的配置文件是: restrict 127.0.0.1 restrict ::1 server 127.127.1.1 fudge 127.127.1.1 stratum 8 disable monitor logfile /var/log/ntp/ntp.log pidfile /var/run/ntpd.pid driftfile /var/lib/ntp/drift leapfile /etc/ntp.leapseconds 在Linux客户端上,我输入ntpdate 1.2.3.4,然后它给我错误: 5 Feb 08:26:39 ntpdate[31059]: no server suitable for synchronization found 这是为什么?我测试了-d参数,即./ntpdate -d 1.2.3.4,它说: 5 Feb 08:40:54 ntpdate[22958]: ntpdate 4.2.8p10@1.3728-o Mon Feb 5 10:02:23 UTC 2018 (1) …
1 ntp  ntpdate  ntpd 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.