...
chrony 의 설정 파일은 /etc/chrony.conf 입니다. 에디터로 열어서 기존 서버 정보를 주석 처리하고 한국과 아시아를 추가합니다.
Code Block | ||
---|---|---|
| ||
# server 0.centos.pool.ntp.org iburst # server 1.centos.pool.ntp.org iburst # server 2.centos.pool.ntp.org iburst # server 3.centos.pool.ntp.org iburst server time.bora.net iburst server time.postech.ac.kr iburst server time.kaist.ac.kr iburst |
동기화 설정이 제대로 되었는지 확인하기 위해 timedatectl 명령을 실행합니다.
Code Block |
---|
# timedatectl
Local time: Sat 2020-01-11 17:19:18 KST
Universal time: Sat 2020-01-11 08:19:18 UTC
RTC time: Sat 2020-01-11 08:19:18
Time zone: Asia/Seoul (KST, +0900)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a |
chronyd 를 콘트롤하는 명령어인 chronyc 로 정상 연결 여부를 확인합니다.
Code Block |
---|
# chronyc sources -v
210 Number of sources = 4
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current synced, '+' = combined , '-' = not combined,
| / '?' = unreachable, 'x' = time may be in error, '~' = time too variable.
|| .- xxxx [ yyyy ] +/- zzzz
|| Reachability register (octal) -. | xxxx = adjusted offset,
|| Log2(Polling interval) --. | | yyyy = measured offset,
|| \ | | zzzz = estimated error.
|| | | \
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 106.247.248.106 2 10 377 778 -1074us[-1068us] +/- 29ms
^+ 210.183.236.141 2 10 377 920 +5391us[+5396us] +/- 67ms
^+ send.mx.cdnetworks.com 2 10 377 860 +1092us[+1098us] +/- 58ms
^+ dadns.cdnetworks.co.kr 2 10 377 5 +206us[ +206us] +/- 33ms |