小编san*_*duo的帖子

NTP 未与 GPS 同步

我尝试使用 NTP 和 GPS 同步时间。我可以从 cgps -s 命令中获取时间,但是 NTP 没有与之同步。

这是我的 ntp.conf:

tos mindist 1.0

# GPS Serial data reference
server 127.127.28.0 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.0 refid GPS
fudge 127.127.28.0 time1 +0.140  # coarse processing delay offset

# GPS PPS reference
server 127.127.22.0 minpoll 4 maxpoll 4
fudge 127.127.22.0 refid PPS
fudge 127.127.22.0 flag3 1  # enable kernel PLL/FLL clock discipline
Run Code Online (Sandbox Code Playgroud)

这是 ntpd 状态:

# ntpq -c peer -c as -c rl
     remote           refid      st t when …
Run Code Online (Sandbox Code Playgroud)

linux time ntp

5
推荐指数
1
解决办法
4584
查看次数

标签 统计

linux ×1

ntp ×1

time ×1