NFS挂载“access denied by server while mounting“的解决方法
Posted 浪子尘晨
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了NFS挂载“access denied by server while mounting“的解决方法相关的知识,希望对你有一定的参考价值。
1.修改配置文件/etc/exports,加入 insecure 选项,重启nfs服务,再尝试挂载。
/home/nfsshare/ *(insecure,rw,async,no_root_squash)
例如:
/data 10.88.15.9(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.26.9(rw,insecure,sync,no_root_squash,anongid=1000)
/data 10.88.15.15(rw,insecure,sync,no_root_squash,anongid=1000)
/data 10.88.15.161(rw,insecure,sync,no_root_squash,anongid=1000)
/data 10.88.15.30(rw,insecure,sync,no_root_squash)
/data 10.88.15.22(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.15.23(rw,insecure,sync,no_root_squash,anongid=1000)
/data 10.88.26.28(rw,insecure,sync,no_root_squash,anongid=1000)
/data 10.88.26.35(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.26.37(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.15.11(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.15.12(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.15.14(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.15.115(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.15.66(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.15.96(rw,insecure,sync,all_squash,anongid=1000)
/data 10.88.26.180(rw,insecure,sync,no_root_squash,anongid=1000)
保存完后,执行exportfs -rf 使用配置生效
2.编辑对应服务器的rc.local文件,命令如下:vim /etc/rc.d/rc.local,添加以下内容:mount -t nfs 10.88.15.9:/data/ /data 最后执行:sh /etc/rc.d/rc.local生效。
以上是关于NFS挂载“access denied by server while mounting“的解决方法的主要内容,如果未能解决你的问题,请参考以下文章
请教关于nfs挂载时报Permission Denied的原因