Install ntp:
# yum install ntp
Edit ntp.conf to setup time servers:
# vim /etc/ntp.conf
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org
Add ntp service to firewall rule:
#firewall-cmd –zone=zone –permanent –add-service=ntp
# firewall-cmd –reload
Start and enable ntpd:
# systemctl start ntpd
# systemctl enable ntpd
# systemctl status ntpd
Verify Time Sync:
# ntpq -p
# ntpstat
Setup Timezone
List of timezones:
# timedatectl list-timezones
Set timezone:
# timedatectl set-timezone Philippines/Manila
Synchronizing System clock using timedatectl
# timedatectl set-ntp yes
Show status
# timedatectl