1. 程式人生 > >NFS掛載時出現"access denied by server while mounting"的解

NFS掛載時出現"access denied by server while mounting"的解

syn init.d tro OS val oot port body get

mount.nfs 失敗解決辦法
mount.nfs: access denied by server while mounting 一個解決辦法

1、權限設置有問題,其實文件夾權限都設為777了,權限上都沒問題, 屬主和所屬組,是否正確。
[root@nfs01 ~]# ls -ld /data/
drwxr-xr-x. 2 nfsnobody nfsnobody 4096 Jun 12 13:31 /data/

2、hosts.deny和hosts.allow都保留默認設置。

3、防火墻也關了,該設置的都設置了,但還是被拒絕。

         [root@nfs01 ~]# getenforce

Disabled

[root@nfs01 ~]# grep "SELINUX=" /etc/selinux/config

SELINUX= can take one of these three values:

SELINUX=disabled

[root@nfs01 ~]# /etc/init.d/iptables status
iptables: Firewall is not running.

4、vim /etc/exports 裏 ip地址範圍不對。 172.16.2.0/24(rw,sync)

NFS掛載時出現"access denied by server while mounting"的解