问题描述
我有一个在RPI3B +上运行的NTP服务器, 如果我将其作为服务运行,则与远程服务器无连接:
几个小时后也没有连接:
代替直接运行此命令:
sudo ntpd -u ntp:ntp
它立即运行:
这是ntp.conf
driftfile /etc/ntp/drift
logfile /var/log/ntp.log
statistics loopstats peerstats clockstats
statsdir /var/log/ntpstats/
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 0.it.pool.ntp.org iburst
server 1.it.pool.ntp.org iburst
server 2.it.pool.ntp.org iburst
server 3.it.pool.ntp.org iburst
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
# Restrict eth0 ip
restrict 127.0.0.1
restrict ::1
restrict source notrap nomodify noquery
有什么问题的想法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)