CentOS7 局域网ntp服务搭建
配置文件:

安装步骤
1 | 查看是否安装 |
默认安装了ntpdate, 需要安装ntp
ntp服务器配置(服务器能访问因特网)
1 | vim /etc/ntp.conf |
ntp服务器配置(服务器只能访问局域网)
1 | vim /etc/ntp.conf |
重启服务&配置开机自启动
1 | 设置开机启动 |

抓包信息


ntp授时原理


参考引用
Centos7安装搭建NTP服务器和NTP客户端同步时间
Configuring an NTP server without internet access (locally)
NTP时钟同步原理及误差简析