Search This Blog

Monday, October 22, 2018

How to Install and configure NTP to synchronize the system clock on CentOS / Redhat / Oracle Linux

configure NTP to synchronize the system clock

Type the following command to install ntp

$ sudo yum install ntp -y
Turn on service
$ sudo -i systemctl enable ntpd.service
Or:
$ sudo -i chkconfig ntpd on
Synchronize the system clock with pool.ntp.org server:

$ sudo ntpdate pool.ntp.org
Start the NTP:

$ sudo -i systemctl start  ntpd.service
Or:
$ sudo service ntpd start