[소개]
Netwrok Time Protocol 약자
네트워크 상에서 연결된 다른 서버의 시간을 동기화하는 프로토콜이다.
[실습 내용]
NTP의 시간을 공유할 서버(마스터) 시간 동기화를 받을 서버(클라이언트) 구성 후 시간 및 동기화 확인 작업을 실시한다.
[실습 환경]
Ubuntu 20.04
[실습 구성]
- ntp master 서버
1. hostname : ubun1
2. IP : 192.168.25.20
- ntp client 서버
1. hostname : ubun2
2. IP : 192.168.25.22
[실습]
1. 각 서버의 ntp 패키지 설치 (master, client)
#apt -y install ntp
2. 서버의 /etc/ntp.conf 파일 설정
#vi /etc/ntp.conf
restrict 192.168.25.22 mask 255.255.255.0 nomodify notrap //ntp 공유 할 클라이언트 서버 정보
3. ntp 데몬 재시작 (master) / ntp.conf 구성 설정 (client)
#/etc/init.d/ntp restart (master)
#vi /etc/ntp.conf (client)
server 192.168.25.20 //ntp master 서버
※pool 부분 주석 처리
4. 타임 확인 및 동기화
#ntpq -p
'Linux > Ubuntu' 카테고리의 다른 글
[Linux_Ubuntu] apache2 및 nginx 포트 변경 (0) | 2023.04.14 |
---|---|
[Linux_Ubuntu] samba 구성 (1) | 2023.04.06 |
[Linux_Ubuntu] pacemaker HAproxy Load Balance (2) | 2023.02.13 |