NFS server/client installation
Package Install (Server/Client 공통)
yum install nfs-utils
systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap
systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap
systemctl stop firewalld
Server 작업, 폴더 공유
공유 대상 폴더 생성
mkdir /nfs_dir
공유 허용할 호스트 지정
#vi /etc/exports
/nfs_dir 192.168.xxx.xxx(rw,sync,no_root_squash,no_all_squash)
#공유대상 #공유허용호스트
Client 작업
Mount
mount -t nfs 192.168.xxx.xxx:/nfs_dir /nfs_dir
fstab
#vi /etc/fstab
192.168.xxx.xxx:/nfs_dir /nfs_dir nfs defaults 0 0