ntp 报错:no server suitable for synchronization found
故障问题:
[root@jenkins plugins]# ntpdate time.nist.gov
23 May 01:37:30 ntpdate[4706]: no server suitable for synchronization found
故障解决方法:
方法一:ntpdate 后面跟 –b -u
#没加前
[root@gitlab ~]# ntpdate time.nist.gov
30 Jul 20:54:33 ntpdate[124013]: no server suitable for synchronization found
#加 -b -u
[root@gitlab ~]# ntpdate -b -u time.nist.gov
30 Jul 20:54:43 ntpdate[124026]: step time server 216.229.0.179 offset -0.007723 sec
方法二:发现 自带的/etc/ntp.conf 中的时间服务器可以用(不知道什么鬼,暂时当一方法吧。)
[root@jenkins plugins]# cat /etc/ntp.conf
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
[root@jenkins plugins]# ntpdate 2.centos.pool.ntp.org
30 Jul 20:56:56 ntpdate[4788]: adjust time server 83.168.200.199 offset 0.057271 sec
有需要可以联系微信xuebao19930721和加入微信群