【问题标题】:Synchronize Linux System clock to Windows NTP Service将 Linux 系统时钟同步到 Windows NTP 服务
【发布时间】:2014-05-12 00:22:48
【问题描述】:

我有一台 linux PC 作为时钟客户端,我想使用 ntpdate 与同一网络上同一空间中的 Windows PC 同步这台 PC 的时间。我很难找到如何做到这一点。

虽然我认为 Windows 时间服务是一个 NTP 服务器,但它并不像调用 ntpdate 并使用 Windows PC 的 IP 地址那么简单。您可以在下面看到这项工作的结果:

signageclient@signagePC:~$ sudo ntpdate -u 192.168.1.100
 1 Apr 09:49:03 ntpdate[12698]: no server suitable for synchronization found

谁能建议我如何进行这种同步?也许正确的 Windows 服务还没有启动?在上面的示例中,此命令在客户端 PC (linux) 上运行,如果是 windows PC,则 192.168.1.100 是 IP。目前没有开启防火墙。

【问题讨论】:

    标签: linux networking command-line time ntp


    【解决方案1】:

    找到答案了!我需要在计算机配置 -> 管理模板 -> 系统 -> Windows 时间服务 -> 时间提供程序下的本地组策略编辑器中启用 Windows NTP 服务器。启用此功能后,我能够与 PC 时钟同步:

    signageclient@signagePC:~$ sudo ntpdate -u 192.168.1.100 4 月 1 日 09:57:08 ntpdate[13347]: 调整时间服务器 192.168.1.100 偏移 -0.031445 秒

    (顺便说一句,这都是在 Windows 7 中)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多