centos8 에서 ntpdate 명령어가 사라졌다.
기존에
ntpdate -b time.bora.net 했는데 centos 8 에서 명령어가 사라졌다.
불편해졌다....
우선 ntp 설치
# yum install ntp
# vi /etc/chrony.conf
# pool 2.centos.pool.ntp.org iburst --> server time.bora.net iburst
로 변경
# service chronyd restart
서비스 재시작
# timedatectl set-ntp true
# timedatectl
Local time: Thu 2020-05-07 02:08:41 EDT
Universal time: Thu 2020-05-07 06:08:41 UTC
RTC time: Thu 2020-05-07 15:02:46
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: active
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
# chronyc sources -v
210 Number of sources = 1
.-- 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
===============================================================================
^* time.bora.net 3 6 17 31 +8577ns[ +96us] +/- 41ms
정상 적용 된것을 확인 할 수 있다.
'Linux' 카테고리의 다른 글
ECMInstallIcons (0) | 2020.05.13 |
---|---|
configure: error: Please install makeinfo before installing (0) | 2020.05.08 |
Peer's Certificate issuer is not recognized. git clone (0) | 2020.04.28 |
Bad RequestThis combination of host and port requires TLS. (0) | 2020.04.27 |
gitlab ssl 적용 (0) | 2020.04.22 |