NFS Version 4 Export
Install the required Packages:
yum install nfs-utils nfs4-acl-tools portmap
Export the folder to share:
echo "/folder/to/share IpAddressToShareWith(rw,no_root_squash,async,fsid=0)" >> /etc/exports
Map NFS User for ownership:
vi /etc/idmapd.conf
Domain=YourDomain.com
Nobody-User=apache Nobody-Group=apache
Iptables Rule :
iptables -A INPUT -p tcp -m tcp --dport 2049 -j ACCEPT
Start / Restart Services :
service nfs start service rpcidmapd restart service portmap start