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

配置yum

使用yum命令来安装时间同步

 yum install ntp -y 

进入 /etc/ntp.conf

蓝色圈内的内容,在前面加上#号,在后方添加一行

重启ntpd服务:systemctl restart ntpd.service

时间同步完成


原文地址:https://www.cnblogs.com/jw1519/p/6227211.html