BlueXIII's Blog

热爱技术,持续学习

0%

Chronyd简易配置

参考文档

常规操作

1
2
3
4
5
6
7
8
9
10
# 配置文件
vi /etc/chrony.conf

# 查看同步状态
timedatectl

# 开机自启
systemctl status chronyd
systemctl start chronyd
systemctl enable chronyd

服务端配置

1
2
3
4
driftfile /var/lib/chrony/drift
local stratum 8
manual
allow 0.0.0.0/0

客户端配置

1
2
3
4
server master iburst
driftfile /var/lib/chrony/drift
logdir /var/log/chrony
log measurements statistics tracking