# 修改chrony的配置文件 vi /etc/chrony.conf -------------------chrony.conf------------------- # Use public servers from the pool.ntp.org project. # Please consider joining the pool (https://www.pool.ntp.org/join.html). pool 2.centos.pool.ntp.org iburst
# Use NTP servers from DHCP. sourcedir /run/chrony-dhcp
# Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/drift # 配置ntp服务器地址 server 10.10.2.103 iburst #为排版方便此处省略部分提示信息 -----------------------------------------------