安装 OS X Mavericks 后时钟运行速度很快

安装 OS X Mavericks 后时钟运行速度很快

我注意到,在更新至 Mavericks 之后,我的 iMac 上的 OS X 系统时间运行得更快了,大约一周后,它快了 4 或 5 分钟。

在我的“日期和时间”偏好设置中,所有内容均设置为自动,时间设置为使用来更新Apple Europe (time.euro.apple.com.),时区也设置为自动。

知道为什么会发生这种情况吗?如何解决?

答案1

我的 iMac 也出现了同样的时钟不准问题。但是我的 MacBook Pro 的设置与 Mavericks 完全相同,而且在同一网络上,时间走得非常准。

有问题的 iMac 在 system.log 中报告无法“创建套接字”。当我查看 system.log 时,它似乎试图每 5 分钟设置一次时间

$ grep ntpd /var/log/system.log    returned many of these, each about 5 minutes apart:

Dec 19 15:32:46 Macintosh-0023dffe31b2.local ntpd[8887]: unable to create socket on en1 (53) for 2002:43ba:cb7b::a82a:82b9:92d0:134#123  
Dec 19 15:37:47 Macintosh-0023dffe31b2.local ntpd[8887]: unable to create socket on en0 (54) for 2002:43ba:cb7b::701a:38b1:c1e9:db4d#123  

我在黑暗中尝试更改了日期和时间首选项中的时间服务器,方法是将附近城市的服务器粘贴到 Apple (time.apple.com) 条目上。我使用了ntp-nist.ldsbc.edu

现在时间正在定期更新,而且看起来很准确。

$ grep ntpd /var/log/system.log 现在返回如下条目,并且看起来正在适当地更新时间:

Dec 19 15:53:15 Macintosh-0023dffe31b2.local ntpd[124]: proto: precision = 1.000 usec  
Dec 19 15:57:43 Macintosh-0023dffe31b2.local ntpd[124]: SYNC state ignoring -0.128408 s  
Dec 19 15:58:49 Macintosh-0023dffe31b2.local ntpd[124]: SPIK state ignoring -0.159852 s  
Dec 19 16:19:45 Macintosh-0023dffe31b2.local ntpd[124]: ntpd: time set -0.224141 s  
Dec 19 16:55:43 Macintosh-0023dffe31b2.local ntpd[124]: ntpd: time set -1.573103 s  

我希望这能继续解决我的问题。

答案2

我通过在 /etc/ntp.conf 中添加以下行解决了此问题

interface ignore ipv6

然后重新启动 ntpd。

使用 ivp4 代替 ipv6 似乎效果很好

相关内容