使用ntpdate服务时,没法同步时间
建立两台虚拟机,其中一台做为时钟源
第一次同步时间源的时候,能够成功同步
过段时间或者重启虚拟机再次同步时间发现没法同步时钟源,出现如下报错ide
[root@localhost ~]# ntpdate 192.168.100.10 2 Mar 08:08:28 ntpdate[6760]: no server suitable for synchronization found
解决方法
关闭iptables服务,从新启动时钟源ntp服务,便可成功同步ui
[root@localhost ~]# systemctl stop iptables [root@localhost ~]# systemctl disable iptables [root@localhost ~]# ntpdate 192.168.100.10 2 Mar 00:08:47 ntpdate[7108]: step time server 192.168.100.10 offset -28801.598470 sec