系统: centos7
1.安装ntp
yum install ntp -y
2.修改配置文件
vi /etc/ntp.conf
restrict 18.5.0.0 mask 255.255.0.0 nomodify notrap noquery #这行主要是不联机
server 127.127.1.0
fudge 127.127.1.0 stratum 8 #将联机的上层server段配置都删掉
系统: centos7
1.安装ntp
yum install ntp -y
2.修改配置文件
vi /etc/ntp.conf
restrict 18.5.0.0 mask 255.255.0.0 nomodify notrap noquery #这行主要是不联机
server 127.127.1.0
fudge 127.127.1.0 stratum 8 #将联机的上层server段配置都删掉