2024-05-12  2024-09-18    127 字  1 分钟

为其他设备提供NTP授时服务

 1# 安装NTP服务
 2apt-get install ntp
 3# 编辑配置文件, pool 后替换为想要的ntp地址
 4vim /etc/ntpsec/ntp.conf
 5# 重启NTP服务
 6systemctl status ntp
 7systemctl restart ntp
 8# 检查NTP同步功能
 9ntpq -p
10# 开放UDP的123端口
1# 检查与NTP服务器的连接, 使用IP可以跳过dns解析
2ntpdate -q 13.113.25.87
1# 设置NTP服务器
2vim /etc/ntpsec/ntp.conf

除另有声明外本博客文章均采用 知识共享 (Creative Commons) 署名 4.0 国际许可协议 进行许可转载请注明原作者与文章出处