本文首发于: https://blog.frytea.com/archives/721/
chrony是网络时间协议的实现。它可以替代ntpd,后者是NTP的参考实现。它在类Unix操作系统上运行,并在GNU GPL v2下发布。
服务端和客户端配置文件都是同一个,分别配置为服务器和客户端即可使用,
配置文件在 /etc/chrony.conf or /etc/chrony/chrony.conf ,具体看版本,
可以使用 man chrony 确认一下。
服务端配置
服务端配置:
开启同步
systemctl enable chronyd
systemctl restart chronyd
客户端配置
开启同步
systemctl enable chronyd
systemctl restart chronyd
常用命令
参考文献