1.部署nfs-ganesha dnf install centos-release-nfs-ganesha30.noarch -y dnf install nfs-ganesha nfs-ganesha-vfs -y 2.配置nfs-ganesha cat /etc/ganesha/ganesha.conf EXPORT { Export_ID = 1; FSAL { Name = VFS; } mode = 0755; Squash="No_root_squash"; Protocols = "4" ; Access_type = RW; Path = "/data"; Pseudo = "/data_pseudo"; } 3.重启nfs-ganesha systemctl restart nfs-ganesha 4.去nfs客户端挂载测试 mount -t nfs4 ${server_ip}:/data_pseudo /mnt df -h #可以看到挂载成功则完成 (责任编辑:IT) |