# CentOS7_Third > CentOS7_First 마운트
NFS 설정 (CentOS7_First)
yum -y install nfs-utils
systemctl restart nfs-server
systemctl status nfs-server
systemctl enable nfs-server
mkdir /share
chmod 707 /share
cd /share
touch test1
netstat -natlp | grep rpc
lsof -i tcp:111 # nfs는 rpc라고 붙는다
vim /etc/exports
> /share 192.168.111.*(rw,sync) # 192.168.111.* 대역만 폴더 공유한다 / 쓰고읽기 가능
systemctl restart nfs-server
exportfs -v
systemctl stop firewalld
setenforce 0
NFS 설정 (CentOS7_Third)
yum -y install nfs-utils
systemctl restart nfs-server
systemctl status nfs-server
systemctl enable nfs-server
showmount -e 192.168.111.100 # 받을수 있는지 확인
mkdir /mnt/share
mount -t nfs 192.168.111.100:/share /mnt/share # 192.168.111.100의 /share폴더와 /mnt/share폴더 마운트
df # 마운트 확인