#server服务端 192.168.9.9
yum -y install nfs-utils ,rpcbind
systemctl start rpcbind.service
systemctl start nfs.service
systemctl enable rpcbind.service
systemctl enable nfs.service
#设置共享目录
vim /etc/exports
/data *(rw,no_root_squash,fsid=0)
#挂载端
yum install -y showmount,rpcbind
systemctl start rpcbind.service
systemctl enable rpcbind.service
showmount -e 192.168.9.9
#将当前data目录 挂载服务端data目录
mount 192.168.9.9:/data /data
#开机自动挂载
vim /etc/fstab
192.168.9.9:/data/ /data/ nfs rw