Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

NTP install and configure in Linux, Centos, Ubuntu & RHEL

NTP install and configure in Centos & RHEL

$ sudo yum install -y ntp
$ sudo systemctl start ntpd
$ sudo systemctl enable ntpd
$ sudo systemctl status ntpd
$ sudo systemctl stop ntpd
$ sudo ntpd -gq
$ sudo systemctl start ntpd

NTP install and configure in Ubuntu

$ sudo ufw allow out 123/udp
$ sudo ufw allow 123/udp
$ sudo apt-get update
$ sudo apt-get install ntp
$ sudo systemctl status ntp
$ sudo ntpdate pool.ntp.org
$ ntpq -p
Rajesh Kumar
Follow me