嘟嘟社区

NFS共享无法使用


局域网的KODI不能搜到NFS服务器,在另外一台debian上手动挂载也不成功,求大佬指点

nfs服务器配置:

  1. [email protected]:~# cat /etc/exports
  2. # /etc/exports: the access control list for filesystems which may be exported
  3. #               to NFS clients.  See exports(5).
  4. #
  5. # Example for NFSv2 and NFSv3:
  6. # /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
  7. #
  8. # Example for NFSv4:
  9. # /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
  10. # /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
  11. #
  12. /mnt/gdrive 192.168.2.*(rw,sync,no_subtree_check)

复制代码

debian客户端手动连接显示不允许:

  1. [email protected]:~# showmount -e 192.168.2.211
  2. Export list for 192.168.2.211:
  3. /mnt/gdrive 192.168.2.*
  4. [email protected]:~# mount -t nfs 192.168.2.211:/mnt/gdrive /mnt/gdrive  -o proto=tcp -o nolock
  5. mount.nfs: Operation not permitted

复制代码

再顶下