# IT #/Linux

Rockylinux 8.x 시간 동기화 방법

국철 2023. 4. 12. 11:01
반응형

Rocky linux 8.x 시간동기화 방법 입니다.

9버전도 가능하고  Centos 8 , redhat 8, 9 버전도 가능 합니다.

 

현재 시간은 2023. 04. 12. (수) 10:57:46

# 시간확인 #

[root@localhost ~]# date
2023. 04. 12. (수) 06:28:26 EDT

timezone 를 변경했지만 시간이 더 이상해졌습니다.

[root@localhost ~]# timedatectl set-timezone Asia/Seoul
[root@localhost ~]# 
[root@localhost ~]# date
2023. 04. 12. (수) 19:29:13 KST

 

chront.conf 에서 

pool 2.rhel.pool.ntp.org iburst 는 주석처리 후 

server time.bora.net iburst
server send.mx.cdnetworks.com iburst

입력

[root@localhost ~]# cat /etc/chrony.conf 
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#pool 2.rhel.pool.ntp.org iburst

server time.bora.net iburst
server send.mx.cdnetworks.com iburst

chronyd restart 후 timedatectl 하니 잘 됩니다.

[root@localhost ~]# systemctl restart chronyd.service

[root@localhost ~]# timedatectl 
               Local time: 수 2023-04-12 10:57:38 KST
           Universal time: 수 2023-04-12 01:57:38 UTC
                 RTC time: 수 2023-04-12 01:57:39
                Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
[root@localhost ~]# 
[root@localhost ~]# date
2023. 04. 12. (수) 10:57:46 KST

 

 

반응형