# nfs安装
nfs是
##安装nfs
yum install nfs-utils
##设置配置文件 注册ip地址,权限
vim /etc/exports
/home/docker/bzzpay/data 172.21.183.1/24(rw,sync,insecure,no_root_squash)
/home/docker/bzzpay/conf 172.21.183.1/24(rw,sync,insecure,no_root_squash)
/home/docker/bzzpay/logs 172.21.183.1/24(rw,sync,insecure,no_root_squash)
##加载配置
exportfs -rv
##启动nfs服务并设置开机启动
systemctl start rpcbind nfs-server
systemctl enable rpcbind nfs-server
##检查nfs是否启动成功
rpcinfo -p
#设置防火墙(nfs:2049,mountd:20048,rpc-bind(portmapper):111)
firewall-cmd --permanent --add-service=nfs --add-service=mountd --add-service=rpc-bind
firewall-cmd --reload