How to Install NTP Time Servers on AlmaLinux 9 VPS

This article provides a guide for how to install NTP time servers on AlmaLinux 9 VPS servers.

Launch 100% SSD AlmaLinux VPS from $3.19/mo!

How to Install NTP Time Servers on AlmaLinux 9 VPS

Pre-requisites:

To install NTP time servers on AlmaLinux 9 VPS, the following conditions must be met:

What are NTP Time Servers?

NTP stands for Network Time Protocol and is used for clock synchronization across multiple computers.

Steps to Install NTP Time Servers on AlmaLinux VPS

To install NTP time servers on AlmaLinux 9 VPS, you can use chrony, which is the default NTP client and server on AlmaLinux.

Here are the steps to follow:

  1. Login using SSH terminal to your AlmaLinux VPS:
  2. Install chrony with the command:
    sudo dnf install chrony
  3. Enable chrony to start automatically at boot with the command:
    sudo systemctl enable --now chronyd
  4. Configure chrony as an NTP server by editing the file /etc/chrony.conf and adding the line allow <network> for each network that you want to serve. For example, allow 192.168.1.0/24 will allow the 192.168.1.0/24 network to sync with your NTP server.
  5. Restart chrony with the command:
    sudo systemctl restart chronyd
  6. If you have firewalld enabled, you need to allow the port 123 for NTP with the command:
    sudo firewall-cmd --permanent --add-service=ntp && sudo firewall-cmd --reload

The NTP time servers are now successfully installed on your AlmaLinux 9 VPS.

Launch 100% SSD AlmaLinux VPS from $3.19/mo!

Conclusion

You now know how to install NTP time servers on AlmaLinux 9 VPS.

  • almalinux 9, chrony, ntp, ntp server, time server, server clock, clock
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

What Server Virtualization Are Your Hypervisors?

All VPS hypervisors use KVM virtualization technology. Order here: KVM VPS servers

How to Update MTU Speed on CentOS VPS

Follow this guide to update MTU speed on CentOS VPS servers. Prerequisites To update the MTU...

Install Python Interpreter on Ubuntu VPS or Dedicated Server

This article provides a step-by-step guide to installing the Python interpreter on an Ubuntu VPS...

What are My root User Login Credentials?

The root (admin) user password is randomly generated. This password can be found in your welcome...

Modify Server Hostname Using SSH in CentOS

This article provides a guide to modify server Hostname using SSH in CentOS server. You can use...