FAQ-Linux chrony 时钟同步

适用模块
Linux 时钟同步 chronyd
使用示例
安装chrony服务
yum install chrony
1、编辑配置文件,默认安装后配置文件在/etc下 chrony.conf
vi /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.centos.pool.ntp.org iburst
#添加配置 客户需提供集群时钟同步节点信息
server x.x.x.x iburst
取消该行注释 local stratum 10
2、启动 chronyd 服务
systemctl start chronyd.service
3、开机启动 chronyd服务
systemctl enable chronyd.service
4、系统时间同步到硬件时间
hwclock -w
5、检验服务
chronyc sources -v

作者:张鸿运