debian 11 时间同步服务 chrony
实验环境
server 192.168.1.4
client 192.168.1.5
server配置
#安装chrony
apt install -y chrony
cat /etc/chrony/chrony.conf
# Welcome to the chrony configuration file. See chrony.conf(5) for more
# information about usable directives.
# Include configuration files found in /etc/chrony/conf.d.
confdir /etc/chrony/conf.d
# Use Debian vendor zone.
#pool 2.debian.pool.ntp.org iburst
server 192.168.1.4 iburst
allow 192.168.1.0/24
local stratum 10
# Use time sources from DHCP.