본문으로 바로가기

[Linux] RHCSA chrony 설정(ntp)

category Linux 2020. 12. 10. 01:10
728x90

1. chrony 설치

[root@JeongYD01 ~]# yum install -y chrony
Last metadata expiration check: 2:43:54 ago on Mon Dec 7 06:40:40 2020.
Package chrony-3.5-1.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

 

2. chrony.conf 파일에 ntp 서버 등록 및 chrony데몬 start

[root@JeongYD01 ~]# vi /etc/chrony.conf

[root@JeongYD01 ~]# systemctl start chronyd
[root@JeongYD01 ~]# systemctl status chronyd

* chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor pre>
   Active: active (running) since Mon 2020-12-07 09:27:54 EST; 3s ago
     Docs: man:chronyd(8)

          & man:chrony.conf(5)

  Process: 11509 ExecStartPost=/usr/libexec/chrony-helper update-daemon (code=e>
  Process: 11505 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SU>
 Main PID: 11507 (chronyd)
    Tasks: 1 (limit: 11155)
   Memory: 1.5M

   CGroup: /system.slice/chronyd.service

           `-11507 /usr/sbin/chronyd

Dec 07 09:27:54 JeongYD01 systemd[1]: Starting NTP client/server...
Dec 07 09:27:54 JeongYD01 chronyd[11507]: chronyd version 3.5 starting (+CMDMON>
Dec 07 09:27:54 JeongYD01 chronyd[11507]: Frequency -20.274 +/- 0.225 ppm read >
Dec 07 09:27:54 JeongYD01 chronyd[11507]: Using right/UTC timezone to obtain le>
Dec 07 09:27:54 JeongYD01 systemd[1]: Started NTP client/server.
lines 1-18/18 (END)

 

3. sync 상태 확인

[root@JeongYD01 ~]# chronyc sources -v

reach 값이 377이면 sync 완료

'Linux' 카테고리의 다른 글

[Linux] RHCSA container  (0) 2020.12.10
[Linux] RHCSA tuned profile  (0) 2020.12.10
[Linux] RHCSA find 활용  (0) 2020.12.09
[Linux] RHCSA SELinux http Listen 포트 추가  (0) 2020.12.08
[Linux] RHCSA Virtual Data Optimizer (VDO) volume 만들기  (1) 2020.12.07