Rumah  >  Artikel  >  pangkalan data  >  mount.nfs:access denied by server while mounting **原因

mount.nfs:access denied by server while mounting **原因

WBOY
WBOYasal
2016-06-07 15:49:302093semak imbas

我使用的是阿里云云服务器 想挂载NFS用于和终端机传输数据,但是报错信息 mount.nfs:access denied by server while mounting 本以为是防火墙的原因,于是关闭了防火墙,问题依旧。 /etc/exports设置的很简单 /home/nfs *(rw,sync,no_subtree_check) 查看 ex

我使用的是阿里云云服务器

mount.nfs:access denied by server while mounting **原因

想挂载NFS用于和终端机传输数据,但是报错信息

mount.nfs:access denied by server while mounting

本以为是防火墙的原因,于是关闭了防火墙,问题依旧。

/etc/exports设置的很简单

/home/nfs       *(rw,sync,no_subtree_check)

查看 exports 手册中关于 secure 选项说明

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/nfs       *(insecure,rw,sync,no_subtree_check)

mount成功!

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:Expert Access 2007 ProgrammingArtikel seterusnya:初探ExtJS(2)