#只需修改 pool/server 行的服务器地址即可, #可以添加多行,表示同时使用多个服务器同步时间。 server 192.168.1.2 iburst server 192.168.1.3 iburst
重启服务
1
systemctl restart chronyd
验证同步状态
使用 timedatectl 命令,看到 synchronized 为 yes 代表同步成功。
1 2 3 4 5 6 7 8
[root@linux2 ~]# timedatectl Local time: 四 2024-09-05 21:00:30 EDT Universal time: 五 2024-09-06 01:00:30 UTC RTC time: 五 2024-09-06 01:00:29 Time zone: America/New_York (EDT, -0400) System clock synchronized: yes NTP service: active RTC in local TZ: no