# 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 # ๋ง์ดํธ ํ์ธ