yum install ntp -y
vim /etc/ntp.conf
# 将自带的server注释掉,填ntp服务器的IP,例如: server 172.111.222.111
systemctl restart ntpd systemctl status ntpd