
[nfs] 데몬
패키지 설치
# yum -y install nfs-utils
서버 설정
/etc/exports, /etc/exports.d/* .exports
서비스 기동
# systemctl enable --now nfs-server
4.방화벽 등록
# firewall-cmd --premanent --add-service=nfs
---------------------------------------------------------
패키지: nfs-utils
데몬 & 포트 & 프로토콜: nfsd(2049/tcp)
주 설정 파일: /etc/nfs.conf
하위 설정 파일: /etc/exports, /etc/exports.d/* .exports
서비스: nfs-server.service
[ex] 기본 설정 확인
[ex] NFS 접근 클라이언트 지정, 서버 공유 옵션
# vi /etc/exports (/etc/exports.d/* .exports)
/share 192.168.20.0/24(ro)
[ex] NFS 서버 자원 공유/마운트
[ex] Man Page Server 구축
[ex] 원격 CD/DVD 공유 서버 구축
[ex] 원격 백업 구축
[ex] NFSv4-only 서버 구축
# vi /etc/nfs.conf
vers3=n
#systemctl mask --now rpc-statd.service rpcbind.service rpcbind.socket
# systemctl restart nfs-server
# firewall-cmd --permanent --add-service=nfs
# firewall-cmd --reload
[ex] DNS/LB(load balence) + WEB + NFS (p.34~)
www.example.com 도메인으로 요청을 하면 192.168.10.10(LB IP) 나와야한다.
www.example.com:80 웹 요청을 하면 WEB1:80, WEB2:80 요청을 넘겨야 한다.
[vi haproxy.cfg]

WEB1/WEB2 웹 서버로 세팅되어야 한고,
NFS에 공유된 자원(/www1)을 마운트 해서 사용한다.
/www1 공유해야 한다.