解决MacOS无法挂载NFS,Operation not permitted错误

新装的Openfiler开启nfs之后,用Macbook的图形界面通过

Finder-->前往-->连接服务器

无法连接。

先在服务器上自己挂自己试了一下,没有问题,说明问题可能在Macbook客户端上。
在Macbook上打开终端:

01 sh-3.2# showmount -e 10.0.0.55
02 Exports list on 10.0.0.55:
03 /home 10.0.0.0/24
04 sh-3.2# mount -t nfs 10.0.0.55:/nfsdata /home
05 mount_nfs: /home: Operation not permitted
06
07 #使用保留端口再试一下
08 sh-3.2# mount -o resvport 10.0.0.55:/nfsdata ttt
09 sh-3.2# ls ttt/
10 Documents ebook images music
11 #可以了

也懒得想为什么了,直接在服务器上的/etc/exportfs文件中加入insecure参数
例如:

1 /nfsdata 10.0.0.0/24(rw,root_squash,no_all_squash,sync,insecure)

搞定,吃饭。

原文转自:http://www.chengyongxu.com/blog/%E8%A7%A3%E5%86%B3macos%E6%97%A0%E6%B3%95%E6%8C%82%E8%BD%BDnfs%EF%BC%8Coperation-not-permitted%E9%94%99%E8%AF%AF/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值