NFS遇到的问题 mount.nfs: access denied by server whi...

今天配置NFS遇到的问题,测试环境为Ubuntu 10.04 

挂载NFS磁盘时报错:mount.nfs: access denied by server while mounting 192.168.111.136:/data/www

local server 执行 mount -t nfs 192.168.111.136:/data/www /mnt 时报错,信息如下:

Google了一下这个报错,有一个文档提到了该错误的解决方法,链接是http://liuzhigong.blog.163.com/blog/static/17827237520115305226932/

贴一下我测试的信息

cat /etc/exports

执行exportfs -rv 

service nfs-kernel-server restart 

执行 mount -t nfs 192.168.111.136:/data/www /mnt 

NFS遇到的问题 mount.nfs: access denied by server whi..._第1张图片

 在服务器里执行 rpcinfo -p localhost ,port都大于1024,借用链接中的一段话

"I googled and found that since the port is over 1024 I needed to add the "insecure" option to the relevant line in /etc/exports on the server. Once I did that (and ran exportfs -r), the mount -a on the client worked."

但是当 /etc/exports  里的内容该为 /data/www *(rw,sync,all_squash)  就不会有挂载失败报错信息。还需要多学习

NFS.

 

 

 

 

 

你可能感兴趣的:(mount,nfs,mount.nfs)