yum install -y nfs-utils rpcbind
vim /etc/exports
/home/ap/nas 192.168.1.0/24(rw,no_root_squash,no_all_squash,sync)
systemctl start rpcbind
systemctl start nfs-serve
systemctl enable rpcbind
systemctl enable nfs-server
exportfs -r
showmount -e localhost
showmount -e 192.168.1.148
chmod 777 nas_a
更改同一的user uid gid groups
挂载端启动
systemctl enable nfs
mount -t nfs 192.168.1.58:/home/ap/nas_a /home/ap/nas_a -o proto=tcp -o nolock
原文:https://www.cnblogs.com/g2thend/p/12061332.html