chronyd 설치

[root@localhost ~]# dnf install -y chrony
마지막 메타자료 만료확인(4:08:57 이전): 2026년 07월 31일 (금) 오전 09시 54분 35초.
꾸러미 chrony-4.2-1.el8.rocky.1.0.x86_64가 이미 설치되어 있습니다.
종속성이 해결되었습니다.
==============================================================================================================================================================================================================
 꾸러미                                          구조                                            버전                                                   저장소                                           크기
==============================================================================================================================================================================================================
향상 중:
 chrony                                          x86_64                                          4.5-2.el8_10                                           baseos                                          354 k

연결 요약
==============================================================================================================================================================================================================
향상  1 꾸러미

전체 내려받기 크기: 354 k
꾸러미 내려받기 중:
chrony-4.5-2.el8_10.x86_64.rpm                                                                                                                                                4.9 MB/s | 354 kB     00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
합계                                                                                                                                                                          600 kB/s | 354 kB     00:00
연결 확인 실행 중
연결 확인에 성공했습니다.
연결 시험 실행 중
연결 시험에 성공했습니다.
연결 실행 중
  준비 중     :                                                                                                                                                                                           1/1
  구현 중     : chrony-4.5-2.el8_10.x86_64                                                                                                                                                                1/1
  구현 중     : chrony-4.5-2.el8_10.x86_64                                                                                                                                                                1/2
  향상 중     : chrony-4.5-2.el8_10.x86_64                                                                                                                                                                1/2
  구현 중     : chrony-4.5-2.el8_10.x86_64                                                                                                                                                                1/2
  구현 중     : chrony-4.2-1.el8.rocky.1.0.x86_64                                                                                                                                                         2/2
  정리        : chrony-4.2-1.el8.rocky.1.0.x86_64                                                                                                                                                         2/2
  구현 중     : chrony-4.2-1.el8.rocky.1.0.x86_64                                                                                                                                                         2/2
  확인 중     : chrony-4.5-2.el8_10.x86_64                                                                                                                                                                1/2
  확인 중     : chrony-4.2-1.el8.rocky.1.0.x86_64                                                                                                                                                         2/2

향상되었습니다:
  chrony-4.5-2.el8_10.x86_64

완료되었습니다!
[root@localhost ~]# systemctl enable chronyd
[root@localhost ~]# systemctl start chronyd
[root@localhost ~]# ps -ef | grep chrony
chrony    346015       1  0 14:03 ?        00:00:00 /usr/sbin/chronyd
root      372409  320977  0 14:04 pts/1    00:00:00 grep --color=auto chrony

 

chronyd 설정

[root@localhost etc]# 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).
server 127.127.1.0
server time.bora.net
local stratum 10

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
makestep 1.0 3

# Enable kernel synchronization of the real-time clock (RTC).
rtcsync

# Enable hardware timestamping on all interfaces that support it.
#hwtimestamp *

# Increase the minimum number of selectable sources required to adjust
# the system clock.
#minsources 2

# Allow NTP client access from local network.
allow 0.0.0.0/0

# Serve time even if not synchronized to a time source.
#local stratum 10

# Specify file containing keys for NTP authentication.
keyfile /etc/chrony.keys

# Get TAI-UTC offset and leap seconds from the system tz database.
leapsectz right/UTC

# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking

 

시간동기화 소스

[root@localhost etc]# chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^? 127.127.1.0                   0   6     0     -     +0ns[   +0ns] +/-    0ns
^? time.bora.net                 2   6     1    14    -81ms[  -81ms] +/-   49ms
[root@localhost etc]#

 

시간동기화 적용

[root@localhost ~]# timedatectl set-ntp true
[root@localhost ~]# timedatectl status
               Local time: 금 2026-07-31 14:45:54 KST
           Universal time: 금 2026-07-31 05:45:54 UTC
                 RTC time: 금 2026-07-31 05:45:54
                Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
[root@localhost ~]#

 

수동으로 시간동기화

[root@localhost ~]# chronyc -a makestep
200 OK
[root@localhost ~]#

'기술 노트 > ROCKY' 카테고리의 다른 글

계정별 sudo 명령어 제한  (0) 2026.06.01
pem to jks  (0) 2026.02.13
패스워드 복잡도 설정  (0) 2026.01.14
시간 맞추기  (0) 2025.09.10
sudoers 설정하기  (0) 2025.07.07

+ Recent posts