"Chrony"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
(새 문서: a) |
잔글 |
||
(같은 사용자의 중간 판 6개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
− | a | + | |
+ | Chrony는 시간 동기화 프로그램 입니다. NTP (Network Time Protocol) 솔루션인 chrony를 구성 합니다. | ||
+ | |||
+ | ==Chrony 설치== | ||
+ | yum install -y chrony | ||
+ | systemctl enable chronyd.service | ||
+ | systemctl restart chronyd.service | ||
+ | |||
+ | vi /etc/chrony.conf | ||
+ | server 0.asia.pool.ntp.org | ||
+ | server 1.asia.pool.ntp.org | ||
+ | server 2.asia.pool.ntp.org | ||
+ | server 3.asia.pool.ntp.org | ||
+ | # allow 192.168.110.0/24 #--- 내부 사용을 위한 설정 | ||
+ | |||
+ | firewall-cmd --add-service=ntp --permanent | ||
+ | firewall-cmd --reload | ||
+ | |||
+ | 123/udp 사용 | ||
+ | |||
+ | ==사용자 매뉴얼== | ||
+ | timedatectl status | ||
+ | timedatectl | grep "NTP synchronized" | ||
+ | # timedatectl set-ntp yes | ||
+ | |||
+ | chronyc tracking | ||
+ | chronyc sources | ||
+ | |||
+ | date | ||
+ | # chronyc -a makestep #--- 즉시 동기화 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | [[Category:CentOS]][[Category:OS]][[Category:Linux]] |
2020년 7월 6일 (월) 14:28 기준 최신판
Chrony는 시간 동기화 프로그램 입니다. NTP (Network Time Protocol) 솔루션인 chrony를 구성 합니다.
Chrony 설치
yum install -y chrony systemctl enable chronyd.service systemctl restart chronyd.service vi /etc/chrony.conf server 0.asia.pool.ntp.org server 1.asia.pool.ntp.org server 2.asia.pool.ntp.org server 3.asia.pool.ntp.org # allow 192.168.110.0/24 #--- 내부 사용을 위한 설정 firewall-cmd --add-service=ntp --permanent firewall-cmd --reload 123/udp 사용
사용자 매뉴얼
timedatectl status timedatectl | grep "NTP synchronized" # timedatectl set-ntp yes chronyc tracking chronyc sources date # chronyc -a makestep #--- 즉시 동기화