Linux_etc
NTP Server - Client(폐쇄망) 동기화 - script
west_east_circle
2022. 3. 8. 09:52
반응형
다수 폐쇄망 서버를 ntp(chrony ) ntp 연동 시킬때 쓰던 스크립트다.
#/bin/bash
timedatectl set-timezone Asia/Seoul
timedatectl set-local-rtc 0
mv /etc/chrony.conf /etc/chrony.conf_old
cp /설정파일 경로/chrony.conf /etc/
timedatectl set-ntp yes
systemctl enable chronyd
systemctl restart chronyd
chronyc sources
ntp (chrony 서버)는 현재 dns (webmin)rocky 8.4 구동중이다.
반응형