1、安装服务
rpm -qa nfs-utils rpcbind
2、配置 nfs 目录
mkdir -p /data/nfs/
chown -R nfsnobody.nfsnobody /data/nfs/
chmod 666 /data/nfs/
vim /etc/exports
/data/nfs *(rw,sync)
exportfs -r
3、启动服务
systemctl start rpcbind
systemctl start nfs
systemctl enable rpcbind
systemctl enable nfs