๐Ÿ’ป Linux

CentOS7 NFS mount

sa1t 2022. 4. 20. 17:43
๋ฐ˜์‘ํ˜•
# CentOS7_Third > Ubuntu ๋งˆ์šดํŠธ
Ubuntu mount
apt -y install nfs-kernel-server

systemctl restart nfs-server
systemctl enable nfs-server

systemctl stop firewalld

mkdir /share
chmod 707 /share
cd /share
touch test1

vim /etc/exports
	> /share 192.168.111.*(rw,sync) 

systemctl restart nfs-server
exportfs -v

CentOS7_Third
systemctl restart nfs-server
systemctl status nfs-server
systemctl enable nfs-server

shomount -e 192.168.111.134

mount -t nfs 192.168.111.134:/share /mnt/share2 # 192.168.111.134์˜ /shareํด๋”์™€ /mnt/share2ํด๋” ๋งˆ์šดํŠธ
df # ๋งˆ์šดํŠธ ํ™•์ธ
๋ฐ˜์‘ํ˜•