1,首先安装ntp服务。

[root@localhost /]# yum install ntp -y

2,修改ntp配置文件。(ntp配置文件在:/etc/ntp.conf

[root@localhost /]# vi /etc/ntp.conf

注:圈住部分为指定同步时间的对象。

修改并保存

3,启动ntpd服务。

[root@localhost /]# systemctl start ntpd.service

  

posted on 2016-11-01 20:31  擦.肩而过  阅读(206)  评论(0编辑  收藏  举报