关于NTP时间服务器的怎么部署服务器方案,在统信服务器的操作系统D版有吗?

uos配置NTP服务服务端配置1、安装 ntpsudo apt -y install ntp
2、修改配置文件sudo vim /etc/ntp.conf
注释五行内容,添加四行内容: 注释内容:pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst
restrict source notrap nomodify noquery
添加内容:restrict 1.0.0.10 nomodify notrap nopeer noquery #IP 为服务端本机 IP
restrict 1.0.0.1 mask 255.0.0.0 nomodify notrap #分别为网关及子网掩码
server 127.127.1.0
fudge 127.127.1.0 startum 10
3、重启服务并查看服务状态sudo systemctl restart ntp
sudo systemctl status ntp
-#-TIME_ERROR 表示时钟不同步,内网导致,正常输出,忽略即可客户端配置1、安装 ntp 和 ntpdatesudo apt -y install ntp ntpdate
2、修改配置文件sudo vim /etc/ntp.conf
注释内容:pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst
restrict source notrap nomodify noquery
添加内容:restrict 1.0.0.20 nomodify notrap nopeer noquery #IP 为客户端本机 IP
restrict 1.0.0.1 mask 255.0.0.0 nomodify notrap #分别为网关及子网掩码
server 1.0.0.10 #服务端 IP
fudge 1.0.0.10 startum 10 #服务端 IP
3、重启 ntp 服务并查看状态sudo systemctl restart ntp
sudo systemctl status ntp
时间同步验证sudo ntpdate 1.0.0.10 #服务端 IP
-#-提示 ntp 服务在运行,需要停止 ntp 服务后再运行sudo systemctl stop ntp
sudo ntpdate 1.0.0.10
如下输出,则为时间同步成功-#-若报错提示:“no server suitable for synchronization found”意为找不到适合同步的服务器,服务同步需要时间,正常输出,等待 5 分钟后再次执行同步 命令即可}

我要回帖

更多关于 怎么部署服务器 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信