Configure NTP Using Chrony
Overiew
Chrony is used to maintain synchronization automatically with an NTP (Network time protocol) server.
note
Chrony does not synchronize the time zone.
Configure the Chrony Service
- Stop chrony synchronization:
[<ADMIN> ~]$ sudo systemctl stop chronyd.service
- In the chrony configuration file /etc/chrony.conf, replace the default servers with the NTP server. T
[<ADMIN> ~]$ sudo vi /etc/chrony.conf
- Restart the chronyd service:
[<ADMIN> ~]$ sudo systemctl restart chronyd.service
- Check time synchronization:
[<ADMIN> ~]$ sudo chronyc sources -v
[<ADMIN> ~]$ sudo chronyc sourcestats -v
[<ADMIN> ~]$ sudo chronyc tracking