How to install NTP daemon on CentOS 7

NTP

Introduction

NTP daemon or ntpd is a program which keeps system time in sync with time servers. If you’re planning to keep your server running long time, it is always good to have ntpd running.

Installation Steps

First update system.

yum update -y

Then install required packages.

yum install -y ntp ntpdate ntp-doc

Update NTP pool.

ntpdate pool.ntp.org

Start ntpd service

systemctl start ntpd

Check status of ntpd to make sure it is running.

systemctl status ntpd

Finally enable service to start on every boot

systemctl enable ntpd

Hope this helps. Stay Awesome !!!

Leave a Reply