yum install nfs-utils libnfsidmap
systemctl enable --now rpcbind nfs-server rpc-statd nfs-idmapd
mkdir -pm 777 /export/share
sudo vi /etc/exports
/export/share 10.0.0.0/16(rw,sync,no_root_squash)
sudo exportfs -r
sudo exportfs -v
firewall-cmd --permanent --zone public --add-service mountd
firewall-cmd --permanent --zone public --add-service rpc-bind
firewall-cmd --permanent --zone public --add-service nfs
firewall-cmd --reload
systemctl enable rpcbind
systemctl start rpcbind
showmount -e <server_ip>
sudo mkdir /mnt/share
mount <server_ip>:/export/share /mnt/share
sudo vi /etc/fstab
<server_ip>:/export/share /mnt/share nfs rw,sync,hard,intr 0 0
Explanation of NFS Options
There was an error while loading. Please reload this page.