Study/Linux
[시간동기화] rdate, ntp
LoonyHyun
2021. 1. 11. 12:16
반응형
참조: gracefulprograming.tistory.com/104
[Linux] ntpdate로 시간동기화 하기
개요 ntpdate 명령어는 리눅스의 시간을 timeserver와 동기화하는 명령어입니다. 리눅스는 서버로 운영되는 경우가 많은데 서버 시간은 서버에서 동작하는 여러 서비스에 영향을 주게 되기 때문에
gracefulprograming.tistory.com
rdate -s timeserver
ntpdate timeserver
# timeserver 목록
time.bora.net
time.nuri.net
time.windows.com
ntp.kornet.net
time.nist.gov
# ntp 서버 설정
설정 파일 위치 /etc/ntp/ntp.conf 또는 /etc/ntp.conf 인 경우가 대부분
# ntp 서비스 등록
chkconfig ntpd on
# ntp 서비스 등록 확인
chkconfig --list | grep ntpd
# ntp 서비스 시작
/etc/init.d/ntpd start
# ntp 동기화 확인
ntpq -p