How to set a time server for CentOS Linux

Background

This article explains how to set a time server on a CentOS Linux server.

Install and enable the NTP service:

yum install ntp
systemctl start ntpd
systemctl enable ntpd
systemctl status ntpd

Check the status of various time servers:

ntpq -p

Reference

Setting Up “NTP (Network Time Protocol) Server” in RHEL/CentOS 7

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top