NTP Service time synchronization
Turn off firewalls and SELinux or turn on all firewall services
[Email protected] ~]# firewall-cmd --set-default-zone=trusted
NTP service
[[email protected] ~]# yum–y install NTP
[email protected] ~]# cat /etc/ntp. conf //Modify configuration file //define native sync time with yourself
Restrict 176.20.32.0 mask 255.255.255.0 nomodify //allow which hosts sync time
#server 0.rhel.pool.ntp.org Iburst
#server 1.rhel.pool.ntp.org Iburst
#server 2.rhel.pool.ntp.org Iburst
#server 3.rhel.pool.ntp.org Iburst
Server 127.127.1.0 iburst//define native sync time with yourself
Fudge 127.127.1.0 Stratum 3
Includefile/etc/ntp/crypto/pw
Keys/etc/ntp/keys
Disable Monitor
Client-side Test NTP service
[Email protected] ~]# ntpdate 172.25.0.254
Jul: ntpdate[6052]: Adjust time server 172.25.0.254 offset 0.031270 sec//Table Test success
CentOS 7.0 NTP Service Setup