This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2926|Reply: 1

[linux] Linux uses chrony to synchronize system time

[Copy link]
Posted on 9/3/2024 9:24:57 PM | | | |
Requirements: Rocky Linux 9 system time is wrong, I don't want to set the time manually, and then I tried to install the ntpdate package, but I found that I couldn't find it, and then, now I start using chrony to synchronize the system time.

Linux updates system time and time zone
https://www.itsvse.com/thread-10215-1-1.html

chrony vs ntpdate comparison

Chrony and NTPD are two different implementations of the Network Time Protocol (NTP). Chrony is a newer implementation that is designed to work properly under a wider range of conditions. It typically synchronizes the system clock faster and has greater time accuracy.



Install chrony

For example, on Rocky Linux 9, install chrony (a modern version of NTP) command as follows:

I found that it has been installed, edit the /etc/chrony.conf configuration, and the command is as follows:

The settings are as follows:



Start the chronyd service and set the boot auto-start with the following command:

Run the following command to check the native time synchronization status to verify that the service has started:



To view the list of time synchronization servers, command:



Reference:The hyperlink login is visible.





Previous:Linux download and install OpenJDK version 21.0.2
Next:Linux deploys the Netdata performance monitoring tool using Docker
 Landlord| Posted on 9/3/2024 9:26:30 PM |
Attached is the configuration information of Alibaba Cloud's new ECS default chrony.conf:




Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com