ntpdate:no server suitable for synchronization found

Posted 呢喃的歌声

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ntpdate:no server suitable for synchronization found相关的知识,希望对你有一定的参考价值。

Question:

  在使用ntpdate同步时间时,出现了no server suitable for synchronization found的报错。

  通过ntpdate -d s2m.time.edu.cn 使用debug模式没有出现异常。

Answer:

  解决办法是,使用ntpdate -ubv s2m.time.edu.cn 可以正常同步了。主要是-u选项的作用

  -u:Direct ntpdate to use an unprivileged port for outgoing packets. This is most useful when behind a firewall that blocks incoming traffic to privileged ports, and you want to synchronize with hosts beyond the firewall. Note that the -d option always uses unprivileged ports.

以上是关于ntpdate:no server suitable for synchronization found的主要内容,如果未能解决你的问题,请参考以下文章