[root@RedHat2 /]# timedatectl
Local time: 一 2024-05-06 09:24:35 CST
Universal time: 一 2024-05-06 01:24:35 UTC
RTC time: 一 2024-05-06 01:24:34
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
[root@RedHat1 /]# vim /etc/chrony.conf
# Allow NTP client access from local network.
#allow 192.168.0.0/16
allow 192.168.127.0/24 #允许的网段地址
# Serve time even if not synchronized to a time source.
#local stratum 10