본문 바로가기
Linux&Ubuntu/서버

rocky9 시간동기화

by Vittorio_Lee 2024. 1. 23.
728x90
반응형
SMALL
# timedatectl
               Local time: 월 2024-01-22 21:03:45 EST
           Universal time: 화 2024-01-23 02:03:45 UTC
                 RTC time: 화 2024-01-23 02:03:45
                Time zone: America/New_York (EST, -0500)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

 

 

# timedatectl set-timezone Asia/Seoul

# vi /etc/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.rocky.pool.ntp.org iburst   << 주석
server time.bora.net iburst << 추가 

 

 

# systemctl restart chronyd

# systemctl status chronyd
● chronyd.service - NTP client/server
     Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-01-23 11:04:34 KST; 3s ago
       Docs: man:chronyd(8)
             man:chrony.conf(5)
    Process: 59183 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 59185 (chronyd)
      Tasks: 1 (limit: 203247)
     Memory: 1.0M
        CPU: 22ms
     CGroup: /system.slice/chronyd.service
             └─59185 /usr/sbin/chronyd -F 2

 1월 23 11:04:34 localhost.localdomain systemd[1]: Starting NTP client/server...
 1월 23 11:04:34 localhost.localdomain chronyd[59185]: chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +>
 1월 23 11:04:34 localhost.localdomain chronyd[59185]: Frequency -26.392 +/- 7.233 ppm read from /var/lib/chrony/d>
 1월 23 11:04:34 localhost.localdomain chronyd[59185]: Using right/UTC timezone to obtain leap second data
 1월 23 11:04:34 localhost.localdomain chronyd[59185]: Loaded seccomp filter (level 2)
 1월 23 11:04:34 localhost.localdomain systemd[1]: Started NTP client/server.


# date
2024. 01. 23. (화) 11:04:47 KST
[root@localhost etc]# timedatectl
               Local time: 화 2024-01-23 11:04:53 KST
           Universal time: 화 2024-01-23 02:04:53 UTC
                 RTC time: 화 2024-01-23 02:04:53
                Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

동기화 완료 !

728x90
반응형
LIST

'Linux&Ubuntu > 서버' 카테고리의 다른 글

linux hostname 변경  (0) 2024.02.19
centos7 DKIM 설정  (1) 2024.02.01
linux stress 부하 테스트  (0) 2024.01.18
파일잠금 방법 chattr & lsattr  (1) 2023.11.13
Linux route 라우트  (0) 2023.08.07