NFS挂载报错

nfs共享的时候,无论怎么检查都报错:mount.nfs: access denied by server while mounting

NFS版本问题
编辑/etc/sysconfig/nfs文件,找到下面:
#Turn off v2 and v3 protocol support
#RPCNFSDARGS="-N 2 -N 3"
#Turn off v4 protocol support
#RPCNFSDARGS="-N 4"  /*把这句前面的#号去掉*/

最后保存,重启nfs服务,再尝试挂载;如果挂载不上,可尝试在后面加-o nolock参数:
[zzx@localhost ~]$ sudo mount -t nfs 192.168.1.110:/home/zzx/fl2440 /mnt/nfs -o nolock

转载于:https://www.cnblogs.com/hodge01/p/11421145.html

你可能感兴趣的:(NFS挂载报错)