使用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
原文:http://12173069.blog.51cto.com/12163069/1945655