其他分享
首页 > 其他分享> > debian10 配置ntp服务

debian10 配置ntp服务

作者:互联网

debian10 配置ntp服务


服务器不能连外网,内网中有一台授时服务器,内网也搭建了debian10的本地镜像源

1.安装ntp

apt install ntp

2.配置

sudo nano /etc/ntp.conf

注释掉如下的pool

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

添加内网的授时服务器ip

server  192.168.1.71 #授时服务器ip

保存退出编辑

重启ntp服务

sudo service ntp restart

3.验证

ntpq -pn

在这里插入图片描述

标签:ntp,配置,iburst,服务器,debian10,org,debian,pool
来源: https://blog.csdn.net/lms99251/article/details/114061260