沒有動作的 ntpd


如果你和我一樣看 Clock Synchronization with NTP 這篇設定自家的 nptd 的,然後又在 ntp.conf 加上

restrict default ignore

你就有可能和我一樣,電腦都不會乖乖對時,用 ntpq -p 去查才發現全部 timeout 了。
這個時候你就必須考慮重新設定一下 restrict,再來看看 ntpq -p 有沒有消息了,像是這樣

*ns.cc.sinica.ed 140.109.7.5 2 u 194 1024 377 20.589 -1.374 0.186
+220-130-158-71. 220.130.158.50 2 u 227 1024 377 23.854 -3.935 0.216

對了,偶爾看一下 /var/db/ntp.drift,如果一直都是 0.00 的話也是不好的徵兆啊……


Leave a Reply

Your email address will not be published. Required fields are marked *