ntp服务器标准配置文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ntp服务器标准配置文件相关的知识,希望对你有一定的参考价值。

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服务。

以上是关于ntp服务器标准配置文件的主要内容,如果未能解决你的问题,请参考以下文章

NTP时间同步以及周期性计划任务

CentOS 配置阿里云 NTP 服务

Linux下NTP服务器配置

NTP服务器

Linux的ntp常用配置整理

大数据高可用集群环境安装与配置(02)——配置ntp服务