Install NTPd and Configure NTP server for time adjustment.
[root@dlp ~]# yum -y install ntp [root@dlp ~]# vi /etc/ntp.conf
# line 18: add the network range you allow to receive requests publicly restrict 0.0.0.0 mask 128.0.0.0 nomodify notrap # change servers for synchronization #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst server bsti1.time.gov.bd iburst server bsti2.time.gov.bd iburst
[root@dlp ~]# systemctl start ntpd
[root@dlp ~]# systemctl enable ntpd
If Firewalld is running, allow NTP service. NTP uses 123/UDP.