1.在其他服务器试一下ntpdate 同步时间命令,如果出现同样的错误,可以确定是主服务器问题
2.去到主服务器,输入命令打开防火墙123端口:
firewall-cmd --add-port=123/tcp --permanent
firewall-cmd --add-port=123/udp --permanent
#重启防火墙:
systemctl restart firewalld.service
#查看123端口是否正常
netstat -apn | grep 123
#查看ntp服务状态
systemctl status ntpd
ntp服务正常运行后,去其他服务再次尝试同步时间
注意其他服务器上的ntp服务需要关闭