NTP and Chrony在RHEL - 猿码设计师

NTP and Chrony在RHEL - 猿码设计师

 

在RHEL7上,Chrony已经代替了NTP来做时间同步服务。

服务器上操作

yum -y install chrony

vim /etc/chrony.conf 
# Allow NTP client access from local network.
allow 10.0.100.0/24   (放开此行,并修改ip)
systemctl enable chronyd.service
systemctl start chronyd.service

客户端操作

yum -y install chrony

vim /etc/chrony.conf
注释掉下面四个,加增一个内部时间同步服务器地址
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst

server 10.0.100.41 iburst
systemctl enable chronyd.service
systemctl start chronyd.service
posted @ 2019-12-10 11:31  ppju  阅读(173)  评论(0编辑  收藏  举报

加我,一起讨论技术噢