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

https://www.tecmint.com/install-ntp-server-in-centos/

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top