chronyd Daemon for Clock Synchronization
chronyc Command-line client used to monitor and control chronyd
/etc/chrony.conf
# dnf install chrony -y
# systemctl enable --now chronyd
# systemctl status chronyd
# vi /etc/chrony.conf
server time.google.com iburst # iburst Speeds up initial synchronization
Check synchronization
# chronyc tracking
View connected NTP servers
# chronyc sources -v
# timedatectl set-ntp true
# systemctl restart chronyd
Force synchronization
# chronyc makestep
# ntpdate -q time.google.com # queries an NTP server for its time without changing the system clock.
# ntpdate -s time.google.com # synchronizes the system clock with an NTP server and logs the output using syslog instead of printing it to the terminal
# chronyd -q 'server time.google.com iburst'
journalctl -u chronyd
No comments:
Post a Comment