首页 > 代码库 > nfs客户端挂载出错 mount.nfs access denied by server while mounting

nfs客户端挂载出错 mount.nfs access denied by server while mounting

使用NFSv4时,在nfs服务端做如下操作:

1
2
3
4
5
6
7
[root@nginx-01 ~]# vim /etc/sysconfig/nfs
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Turn off v2 and v3 protocol support
RPCNFSDARGS="-N 2 -N 3"
        ----->启用
# Turn off v4 protocol support
RPCNFSDARGS="-N 4"     ---->启用

重启服务:

1
[root@nginx-01 ~]# service nfs restart


nfs客户端挂载出错 mount.nfs access denied by server while mounting