1.安装nfs
yum -y install nfs-utils rpcbing
2.创建nfs的共享目录
# mkdir /home/data
# chown 36:36 -R /home/data
# chmod 755 -R /home/data
3.配置NFS权限并设置nfs服务开机启动。
# vi /etc/exports
/home/data *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)
:qw
# systemctl enable --now nfs.service
4,检查nfs服务状态
# systemctl status nfs