NTP and Chrony在RHEL

巧了我就是萌 提交于 2019-12-10 11:58:45

在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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!