728x90
반응형
# [CentOS] chrony 설치
# dnf install chrony
# systemctl status chronyd
● chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2024-03-02 16:36:03 KST; 15h ago
Docs: man:chronyd(8)
man:chrony.conf(5)
Main PID: 4034 (chronyd)
Tasks: 1 (limit: 24909)
Memory: 1.6M
CGroup: /system.slice/chronyd.service
└─4034 /usr/sbin/chronyd
# systemctl enable chronyd
# vi /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.centos.pool.ntp.org iburst
server time.bora.net iburst <----- 추가
server send.mx.cdnetworks.com iburst <----- 추가
# systemctl restart chronyd
# chronyc sources -v
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current best, '+' = combined, '-' = not combined,
| / 'x' = may be in error, '~' = too variable, '?' = unusable.
|| .- 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
===============================================================================
^* time.bora.net 2 6 377 63 +816us[+1809us] +/- 648ms
^? i0-h0-s333.p28-nrt.cdngp> 0 8 0 - +0ns[ +0ns] +/- 0ns
# [Ubuntu] Chrony 설치
# apt install chrony
# systemctl status chronyd
● chrony.service - chrony, an NTP client/server
Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2024-03-03 08:40:50 KST; 11s ago
Docs: man:chronyd(8)
man:chronyc(1)
man:chrony.conf(5)
Process: 10627 ExecStart=/usr/lib/systemd/scripts/chronyd-starter.sh $DAEMON_OPTS (code=exited, status=0/SUC>
Main PID: 10637 (chronyd)
Tasks: 2 (limit: 2219)
Memory: 1.3M
CPU: 97ms
CGroup: /system.slice/chrony.service
├─10637 /usr/sbin/chronyd -F 1
└─10638 /usr/sbin/chronyd -F 1
# systemctl enable chrony
Synchronizing state of chrony.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable chrony
# vi /etc/chrony/chrony.conf
# See http://www.pool.ntp.org/join.html for more information.
pool ntp.ubuntu.com iburst maxsources 4
pool 0.ubuntu.pool.ntp.org iburst maxsources 1
pool 1.ubuntu.pool.ntp.org iburst maxsources 1
pool 2.ubuntu.pool.ntp.org iburst maxsources 2
server time.bora.net iburst <--- 추가
server send.mx.cdnetworks.com iburst <--- 추가
# systemctl restart chronyd
# chronyc sources -v
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current best, '+' = combined, '-' = not combined,
| / 'x' = may be in error, '~' = too variable, '?' = unusable.
|| .- 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
===============================================================================
^- prod-ntp-3.ntp4.ps5.cano> 2 6 17 6 -9258us[-9258us] +/- 143ms
^- alphyn.canonical.com 2 6 33 3 -11ms[ -11ms] +/- 133ms
^- prod-ntp-5.ntp1.ps5.cano> 2 6 17 6 -11ms[ -11ms] +/- 145ms
^- prod-ntp-4.ntp1.ps5.cano> 2 6 17 6 -7299us[-7299us] +/- 145ms
^- 121.174.142.81 3 6 17 7 -224us[ -224us] +/- 43ms
^* 106.247.248.106 2 6 17 7 +1773us[+5022us] +/- 28ms
^- ec2-13-209-84-50.ap-nort> 2 6 17 5 +1679us[+1679us] +/- 7298us
^+ time.bora.net 3 6 17 5 -3772us[-3772us] +/- 56ms
^? i0-h0-s333.p28-nrt.cdngp> 0 7 0 - +0ns[ +0ns] +/- 0ns
728x90
반응형
LIST
'IT관리' 카테고리의 다른 글
(Ubuntu22.04) 리눅스 서비스 등록-2(systemctl service) (0) | 2024.03.03 |
---|---|
(CentOS 8) 리눅스 서비스 등록-1(systemctl service) (0) | 2024.03.03 |
리눅스에서 여러파일 문자열 찾기 및 치환하기 (0) | 2024.02.03 |
윈도우11 터미널(cmd.exe) 창 분할하기 (0) | 2024.02.03 |
CPU arm64, x86, x64 등 (0) | 2024.01.30 |