安装ntp
yum -y install ntp ntpdate |
修改ntp配置文件
cat /etc/ntp.conf |
启动ntp服务
systemctl enable ntpd |
客户端测试同步时间
错误1: ntpdate[76283]: no server suitable for synchronization found
使用ntpdate -d 192.168.100.14 提示:
192.168.100.14: Server dropped: strata too high |
在ntpd服务配置文件添加以下参数并重启ntpd服务进行时间同步测试
server 127.127.1.0 fudge |