Environment introduction
Two centos7
192.168.59.130
192.168.59.131
Install NTP service on server 192.168.59.131
yum -y install ntp
Modify the configuration file
vim /etc/ntp.conf
Restart ntp service
systemctl restart ntpd
Client 192.168.59.130 install ntpdate
yum -y install ntpdate
ntpdate -u 192.168.59.131
Adaptation mode
ntpdate -d 192.168.59.131