sudo yum install chrony
sudo vi /etc/chrony.conf
# Allow NTP client access from local network. allow 172.31.16.0/204. Save and exit vi.
sudo systemctl restart chronyd
sudo vi /etc/chrony.conf7. At the top of the document, you will see a bunch of public NTP servers:
server 0.centos.pool.ntp.org iburst server 1.centos.pool.ntp.org iburst server 2.centos.pool.ntp.org iburst server 3.centos.pool.ntp.org iburst
server 172.31.31.75 iburst9. Save and exit vi.
sudo systemctl restart chronyd11. Run the following to ensure chronyd is getting synced to a NTP server.
[centos@ip-172-31-16-141 etc]$ timedatectl status
Local time: Fri 2021-07-02 21:06:23 UTC
Universal time: Fri 2021-07-02 21:06:23 UTC
RTC time: Fri 2021-07-02 21:00:49
Time zone: UTC (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
[centos@ip-172-31-16-141 etc]$ chronyc sources 210 Number of sources = 1 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* ip-172-31-31-75.ca-central> 2 6 17 44 -2239ns[-5664ns] +/- 5196us
001116156

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.