安装nfs
yum install -y nfs-utils yum install -y rpcbind systemctl start rpcbind systemctl enable rpcbind systemctl start nfs-server systemctl enable nfs-server |
挂载路径
[root@dev-0006 rabbitmq]# cat /etc/exports
/var/www 10.168.0.197/24(rw) |
重新加载
systemctl reload nfs |
测试查看并给权限
showmount -e 10.168.0.77 chmod 777 /var/www 或者 chown nfsnobody:nfsnobody /var/www |
客户端挂载
mount 10.168.0.197:/var/www /var/www/ |