NFS Server
Step-1
# rpm -qa nfs*
# mkdir /read
# mkdir /write
# chmod 777 /write
Step-2
# vim /etc/exports
/read *(ro,sync)
/write *(rw,async)
:wq
# systemctl restart nfs-server
# systtemctl enable nfs-server
# firewall-cmd --permanent --add-service=nfs
and reload as well
# exportfs -v
# exportfs -r
# showmount -e
# showmount -e 192.168.0.x
NFS Client Configuration:-
To access nfs shared folder
create mount point and then mount
# mount 192.168.0.x:/read /ro
# mount 192.168.0.x:/write /rw
# df -TH (to check)
to mount permanent
# vim /etc/fstab
192.168.0.x:/read /ro nfs defaults 00
192.168.0.x:/write /rw nfs defaults 00
:wq
# mount -a