大家好,请问一个openeluer的问题,执行ntpd -p 命令时返回以下错误,请问是什么原因,需要如何解决,我们业务上需要用到这个命令:
ntpdc -p
localhost: timed out, nothing received
***Request timed out
正常应该是这样返回(在centos上的显示,ntpd.conf):
ntpdc -p
remote local st poll reach delay offset disp
=======================================================================
*HQ-V-DC01.dahua 10.1.100.200 4 1024 377 0.00076 0.001043 0.13794
=HQ-V-DC02.dahua 10.1.100.200 4 1024 377 0.00064 0.000999 0.13965
/etc/ntp.conf配置如下,同centos机器上是一致的:
driftfile /var/lib/ntp/drift
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
restrict ::1
restrict 10.1.2.80
restrict default nomodify notrap nopeer noepeer noquery
restrict source nomodify notrap noepeer noquery
server 10.1.2.80
tos maxclock 5