반응형
[리눅스 명령어]CentOS : man chronyd
 

1. 용도 및 목적
리눅스 네트워크 설정 (rhel 8 부터 기본), chronyd 필요

ntp name chrony name
/etc/ntp.conf /etc/chrony.conf
/etc/ntp/keys /etc/chrony.keys
ntpd chronyd
ntpq chronyc
ntpd.service chronyd.service
ntp-wait.service chrony-wait.service
ntp name chrony name
/etc/ntp.conf /etc/chrony.conf
/etc/ntp/keys /etc/chrony.keys
ntpd chronyd
ntpq chronyc
ntpd.service chronyd.service
ntp-wait.service chrony-wait.service


2. 자주 쓰는 옵션
-ntp 서버 설정 #ntp 서버 iburst 옵션을 사용하면 동기화 시간 단축
#로컬 설정 stratum 10 은 낮을 수록 우선순위가 높고, 평상 시에는 메인 ntp 설정을 동기화하게 하기 위함(straum 0 : 원자시계, 1 : 0의 서버에 직접 동기화 : 일반적으로 2, 3 )
vi /etc/chrony.conf
server time.bora.net iburst
server send.mx.cdnetworks.com iburst
server 127.127.1.0

-ntp 자동 기동, on off
systemctl enable chronyd.service
systemctl disable chronyd.service

-ntp 기동,정지
systemctl start chronyd.service
systemctl stop chronyd.service
systemctl restart chronyd.service

-동기화 확인 
timedatectl

-정상연결여부 확인
chronyc tracking
chronyc sources -v #v 옵션 빼면 ntpq -p

-즉시 동기화
chronyc -a makestep

반응형

+ Recent posts