# ===================================================================
# 방화벽 해제
# ===================================================================
firewall-cmd --permanent --zone=public --add-port=2049/tcp
# ===================================================================
# nfs-utils 설치
# ===================================================================
sudo yum install -y nfs-utils
or
sudo dnf install -y nfs-utils
# ===================================================================
# service 등록 및 start
# ===================================================================
sudo systemctl enable --now nfs-server
# ===================================================================
# /ets/exports 작성 (mount 할 서버)
# ===================================================================
/svc/nfs/share control01(rw,sync)
/svc/nfs/share worker01(rw,sync)
/svc/nfs/share worker02(rw,sync)
# ===================================================================
# service restart
# ===================================================================
sudo exportfs -r
systemctl restart nfs-server
# ===================================================================
# mount list 확인
# ===================================================================
sudo showmount -e
sudo exportfs
# ===================================================================
# mount 할 폴더 생성 후 mount
# ===================================================================
mount -t nfs psnedge01:/svc/nfs/share /svc/nfs/share
# ===================================================================
# ※ 참고 unmount
# ===================================================================
umount -t nfs /svc/nfs/share
# ===================================================================
# /etc/fstab 파일 內 추가
# ===================================================================
/svc/nfs/share nfs defaults 0 0
nerdctl 설치 (0) | 2023.08.11 |
---|---|
Containerd 설치 (0) | 2023.08.11 |
Linux ssh 보안 설정 (0) | 2023.08.05 |