Lesson 6.4: Configure time service clients


[root@serverA ~]# rpm -q chrony
chrony-4.3-1.el9.aarch64
 
[root@serverA ~]# systemctl start chronyd
[root@serverA ~]# systemctl enable chronyd
[root@serverA ~]# systemctl status chronyd
 
[root@serverA ~]# vim /etc/chrony.conf
server time.google.com iburst
[root@serverA ~]# systemctl restart chronyd.service
[root@serverA ~]# timedatectl set-ntp true
 
 
[root@serverA ~]# timedatectl set-timezone Asia/Shanghai
[root@serverA ~]# timedatectl
               Local time: Sun 2024-10-13 12:51:33 CST
           Universal time: Sun 2024-10-13 04:51:33 UTC
                 RTC time: Sun 2024-10-13 12:41:56
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
All systems normal

© 2025 2023 Sanjeeb KC. All rights reserved.