mount时报access denied by server错误的解决方法
[root@ay /]# mount -t nfs -o rw 172.10.10.1:/test /testr mount.nfs: access denied by server while mounting 172.10.10.1:/test /test [root@ay /]#
出现上述挂载失败时,首先检查nfs服务器的/etc/exports
是否放开相关目录的挂载权限,如果一切ok,原因很可能是使用了非法端口,端口号>1024,解决方案是再/etc/exports配置里增加一个参数insecure,
[root@iZr]# more /etc/exports /test 172.10.10.2(insecure,rw,No_root_squash) [root@iZ]#
重启nfs服务systemctl restart nfs.service,客户端重新挂载即可成功
#转载请注明出处!

评论
shopee虾皮店铺
回复过来支持一下值得收藏分享