最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

mount.nfs:accessdeniedbyserverwhilemounting一个解决办

来源:动视网 责编:小采 时间:2020-11-09 07:20:53
文档

mount.nfs:accessdeniedbyserverwhilemounting一个解决办

mount.nfs:accessdeniedbyserverwhilemounting一个解决办: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 wor ked. //如果端口号大于1024, I googl
推荐度:
导读mount.nfs:accessdeniedbyserverwhilemounting一个解决办: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 wor ked. //如果端口号大于1024, I googl


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 wor ked. //如果端口号大于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.

//如果端口号大于1024,则需要将 insecure 选项加入到配置文件(/etc/exports)相关选项中mount客户端才能正常工作:

查看 exports 手册中关于 secure 选项说明也发现确实如此

[root@lzgonline init.d]# man exports

secure,This option requires that requests originate on an Internet port less than IPPORT_RESERVED (1024). This option is on by default. To turn it off, specify insecure.

//secure 选项要求mount客户端请求源端口小于1024(然而在使用 NAT 网络地址转换时端口一般总是大于1024的),默认情况下是开启这个选项的,如果要禁止这个选项,则使用 insecure 标识

修改配置文件/etc/exports,加入 insecure 选项

/home/lzgonline/rootfs *(insecure,rw,async,no_root_squash)

保存退出

然后重启nfs服务:service nfs restart

然后问题就解决了

文档

mount.nfs:accessdeniedbyserverwhilemounting一个解决办

mount.nfs:accessdeniedbyserverwhilemounting一个解决办: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 wor ked. //如果端口号大于1024, I googl
推荐度:
标签: 解决 server access
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top