In this tutorial, How to install and configure ntp server in Centos. NTP- is a protocol that runs over port 123 UDP at Transport Layer and allows computers to synchronize time over networks for an accurate time.
Install and configure ntp
[vagrant@DevopsRoles ~]$ sudo yum -y install ntp
Configure NTP server
[vagrant@DevopsRoles ~]$ sudo vi /etc/ntp.conf
The content file “ntp.conf” as below
# line 18: add the network range your network
restrict 10.0.2.0 mask 255.255.255.0 nomodify notrap
# change servers for synchronization
server 0.asia.pool.ntp.org
server 1.asia.pool.ntp.org
server 2.asia.pool.ntp.org
server 3.asia.pool.ntp.org
Start and startup ntp
[vagrant@DevopsRoles ~]$ sudo systemctl start ntpd
[vagrant@DevopsRoles ~]$ sudo systemctl enable ntpd
If Firewalld is running, allow NTP service. NTP uses 123/UDP.
[vagrant@DevopsRoles ~]$ sudo firewall-cmd --add-service=ntp --permanent
[vagrant@DevopsRoles ~]$ sudo firewall-cmd --reload
Check it works normally
[vagrant@DevopsRoles ~]$ ntpq -p

Conclusion
You have to install and configure ntp centos 7. I hope will this your helpful. Thank you for reading the DevopsRoles page!