Synchronization 找不到适合NTP服务同步的服务器

Synchronization 找不到适合NTP服务同步的服务器,synchronization,ntp,ntpd,Synchronization,Ntp,Ntpd,我必须从源代码构建ntp包,并在某些主机上安装所有包。安装后,ntpdate 1.us.pool.ntp.org用于同步。但是,当我尝试执行ntpdate时,它显示了以下错误 7月21日18:57:53 NTUpdate[18287]:未找到适合同步的服务器 更奇怪的是,有时在我尝试ntpdate 1.us.pool.ntp.org ntp服务器的我的配置文件: # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

我必须从源代码构建
ntp
包,并在某些主机上安装所有包。安装后,
ntpdate 1.us.pool.ntp.org
用于同步。但是,当我尝试执行
ntpdate
时,它显示了以下错误

7月21日18:57:53 NTUpdate[18287]:未找到适合同步的服务器

更奇怪的是,有时在我尝试
ntpdate 1.us.pool.ntp.org

ntp服务器的我的配置文件:

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift


# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# Specify one or more NTP servers.

# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
server 127.1.1.0 # local clock
fudge 127.1.1.0 stratum 10
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::
#/etc/ntp.conf,ntpd的配置;有关帮助,请参见ntp.conf(5)
漂移文件/var/lib/ntp/ntp.drift
#如果要记录统计信息,请启用此选项。
#statsdir/var/log/ntpstats/
统计数据loopstats peerstats clockstats
filegen loopstats文件loopstats类型日启用
filegen对等状态文件对等状态类型日启用
filegen clockstats文件clockstats类型日启用
#指定一个或多个NTP服务器。
#使用NTP池项目中的服务器。Ubuntu技术委员会批准
#2011年2月8日(LP:#104525)。看见http://www.pool.ntp.org/join.html 对于
#更多信息。
服务器127.1.1.0#本地时钟
福吉127.1.1.0第10层
#访问控制配置;有关详细信息,请参见/usr/share/doc/ntp doc/html/acopt.html
#细节。网页
#可能也会有帮助。
#
#请注意,“限制”同时适用于服务器和客户端,因此
#这可能是为了阻止来自某些客户端的请求,也可能会终止
#阻止来自您自己的上游服务器的回复。
#默认情况下,与每个人交换时间,但不允许配置。
restrict-4默认kod notrap nomodify nopeer noquery
restrict-6默认kod notrap nomodify nopeer noquery
#本地用户可以更密切地询问ntp服务器。
限制127.0.0.1
限制::

我在安装ntp时也尝试了默认配置,但它不起作用

您可以尝试
ntpdate-buv1.us.pool.ntp.org

-b适用于机器不同步超过1000秒的情况

-u使NTUpdate使用非特权端口

-v表示冗长

我的系统上的响应因相同错误而更改:

找不到适合同步的服务器

进入:

12月19日21:36:46新台币更新日期[18781]:新台币更新日期4.2。7p465@1.2483-o 2014年9月7日星期日08:14:50 UTC(1)

12月19日21:36:45 NTUpdate[18781]:步进时间服务器194.109.22.18偏移-6.540448秒


甚至我们也面临着这个问题。。。。但我们通过点击以下命令解决了问题:

ssh localhost "sudo apt-get install ntp ntpdate ; sudo service ntp stop; sudo ntpdate 0.ubuntu.pool.ntp.org; sudo service ntp start"
为此,您需要安装openssh服务器


另外,在启动上述“ssh”命令之前,请删除ntp和ntpdate(sudo apt get remove--purge ntp ntpdate)

当您试图从中获取时间的服务器与上游ntp服务器没有连接时,则不适合同步。

这是什么建议?