How to Install and Configure Chrony on RHEL 8

How to Install and Configure Chrony on RHEL 8
How to Install and Configure Chrony on RHEL 8

How to Install and Configure Chrony on RHEL 8 - The time on the server is indeed crucial, especially if the server is used for transactional purposes that require real-time updates.

Therefore, I will share some tips on how to set it up. In this case, I will be using the chronyd service, which needs to be installed first on your server running Linux RHEL 8 and minimum server configuration.

Preparation

Set up a local repository before installing chronyd, as installing dependencies will automatically search for and install them.

Installing

# yum install chrony ntpstat -y

Configure

After you have successfully installed the service, the next step is to configure the time to match your universal time. You can find your zone, date, and time at: Indonesia — id.pool.ntp.org. You can search for it according to your specific time zone.

# vi /etc/chrony.conf
server 0.id.pool.ntp.org iburst minpoll 4 maxpoll 6
configure in chrony.conf
configure in chrony.conf

Now, after you have successfully added the time zone source, you just need to restart the chronyd service for it to run properly. And don't forget to enable automatic updates when the server boots up or after a restart.

# systemctl enable chronyd; systemctl start chronyd; systemctl status chronyd
start service chronyd
start service chronyd

Make Sure

Make sure to check whether the time synchronization is active or not by using the following command:

# timedatectl status
check status sync
check status sync

Maybe that's all I can share with you guys, hopefully this article will be useful.

Thank You 

Bangkit Ade Saputra
Bangkit Ade Saputra At the end of the day, my job involves people. we're complicated, we're always changing, we have millions of things going on in our lives, and changing jobs is always a big decision.

Post a Comment for "How to Install and Configure Chrony on RHEL 8"