NFS 无法挂载服务器被拒绝访问

NFS 无法挂载服务器被拒绝访问

在服务器端 (AIX)

vi /etc/exports
/NFS -rw
exportfs -a

在客户端,这是我的带有 ubuntu 操作系统的笔记本电脑。

showmount -e 192.168.119.56
Export list for 192.168.119.56:
/NFS (everyone)

安装到共享文件目录时显示以下错误:

sudo mount -t nfs -vvvv -o nfsvers=3 192.168.119.56:/NFS /home/lastvirus/sharedfiles
mount.nfs: timeout set for Wed Jun 21 16:52:08 2023
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.119.56'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.119.56 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.119.56 prog 100005 vers 3 prot UDP port 57183
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.119.56:/NFS

这可能对 nfs 版本有帮助。

rpcinfo 192.168.119.56 |egrep "service|nfs"
   program version netid     address                service    owner
    100003    2    udp       0.0.0.0.8.1            nfs        unknown
    100003    2    udp6      ::.8.1                 nfs        unknown
    100003    3    udp       0.0.0.0.8.1            nfs        unknown
    100003    3    udp6      ::.8.1                 nfs        unknown
    100003    2    tcp       0.0.0.0.8.1            nfs        unknown
    100003    2    tcp6      ::.8.1                 nfs        unknown
    100003    3    tcp       0.0.0.0.8.1            nfs        unknown
    100003    3    tcp6      ::.8.1                 nfs        unknown
    100003    4    tcp       0.0.0.0.8.1            nfs        unknown
    100003    4    tcp6      ::.8.1                 nfs        unknown

相关内容