cat /etc/ntp.conf
driftfile /var/lib/ntp/drift
restrict 127.0.0.1
restrict ::1
restrict 192.168.0.0 mask 255.255.0.0 nomodify
restrict 10.0.0.0 mask 255.0.0.0 nomodify
restrict 172.16.0.0 mask 255.255.0.0 nomodify
server 0.rhel.pool.ntp.org iburst
server 1.rhel.pool.ntp.org iburst
server 2.rhel.pool.ntp.org iburst
server 3.rhel.pool.ntp.org iburst
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
disable monitor
注意:
1、服务器之间的时间误差不能超过1000秒,否则NTP服务自动关闭。超过1000秒请使用客户端工具ntpdate同步再重启ntpd服务。
时间: 2024-11-13 17:17:11