mount_nfs: can't mount /data from x.x.x.x onto /Users/caicloud/nfs1: Operation not permitted

今天自己用某云搭建了一台nfs共享,因为自己更喜欢在linux主机上调试,搭建好以后打算mount 到mac上,发现一下提示


MacBook-Pro-4:~ caicloud$ sudo mount -t nfs x.x.x.x:/data nfs1/
mount_nfs: can't mount /data from x.x.x.x onto /Users/caicloud/nfs1: Operation not permitted

因为自己测试是OK的

MacBook-Pro-4:~ caicloud$ showmount -e x.x.x.x
Exports list on x.x.x.x:
/data                               *
/root                               *
/root/test                          *

google 了一把 发现需要用-o resvport

sudo mount -o resvport x.x.x.x:/data nfs1/
MacBook-Pro-4:nfs1 caicloud$ ls
a

 

但是发现ls 这个目录有明显卡顿的感觉,大概卡顿时间有0.5s左右

 

你可能感兴趣的:(linux命令以及脚本编写)