时间同步ntp服务的安装与配置

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

  

原文地址:https://www.cnblogs.com/zyh120/p/6020892.html