您的位置: 首页 > 文章 > Centos7 ntp服务器的搭建 Centos7 ntp服务器的搭建 分类: 文章 • 2024-02-29 17:45:28 Centos7 ntp服务器的搭建 首先安装ntp服务, yum install ntp 编辑ntp.conf , vi /etc/ntp.conf 内容如下: 配置允许机器的IP或IP段,同时配置这台服务器需要同步的时钟服务器,这里配置的是本机为自己的时钟服务器。配置完成后重启ntp服务,并设置为开机自启 systemctl restart ntpd systemctl enable ntpd