IP:192.168.43.156
IP:192.168.43.185
systemctl stop firewalld.service
setenforce 0

yum install ntp ntpdate -y

vim /etc/ntp.conf

service ntpd start

为了使服务可以在系统引导的时候自动启动
service ntpd startchkconfig ntpd on

ntpq -p

yum install ntp ntpdate -y

4.2 配置ntp.conf文件
vim /etc/ntp.conf

4.3 手动同步时间
ntpdate 192.168.43.156

原文:https://blog.51cto.com/14375810/2427509