MacOS无法挂载NFS Operation not permitted错误怎么办
更新:HHH   时间:2023-1-8


小编给大家分享一下MacOS无法挂载NFS Operation not permitted错误怎么办,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!

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

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

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

无法连接。

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

在Macbook上打开终端:

sh-3.2# showmount -e 10.0.0.55

Exports list on 10.0.0.55:

/home                10.0.0.0/24

sh-3.2# mount -t nfs 10.0.0.55:/nfsdata /home

mount_nfs: /home: Operation not permitted

#使用保留端口再试一下

sh-3.2# mount -o resvport 10.0.0.55:/nfsdata ttt

sh-3.2# ls ttt/

Documents  ebook    images   music

#可以了

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

例如:

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

看完了这篇文章,相信你对“MacOS无法挂载NFS Operation not permitted错误怎么办”有了一定的了解,如果想了解更多相关知识,欢迎关注天达云行业资讯频道,感谢各位的阅读!

返回移动开发教程...