在做这个之前需要先搭建yum
http://www.cnblogs.com/jw31/p/5955852.html
在做之前我们需要先安装ntp服务
yum install ntp -y
vi /etc/ntp.conf
出现四行:server 0.centos.pool.ntp,org iburst
我们需要注释掉前三行,在最后一个服务输入
server 172.16.57.219 -->被同步的服务器时间
保存退出
重启ntp服务 -----> systemctl restart ntpd.service
输入date查询时间是否和目标服务器的时间同步