【问题标题】:Raspberry pi: can't share file using NFS树莓派:无法使用 NFS 共享文件
【发布时间】:2015-11-30 10:45:05
【问题描述】:

我无法在我的桌面(作为 NFS 服务器,操作系统:ubuntu 14.04)和我的 Rasberry pi(作为 NFS 客户端,操作系统:Raspbian jessie)之间共享文件

我所做的如下:

服务器端

apt-get install nfs-kernel-server
mkdir -p /export/egmintel
mount --bind /home/egmintel /export/egmintel

在 /etc/default/nfs-kernel-server 中:NEED_SVCGSSD="no"

在客户端和服务器的 /etc/idmapd.conf 中:

[Mapping]

Nobody-User = nobody
Nobody-Group = nogroup

在 /etc/exports 中

/export       192.168.1.48(rw,fsid=0,insecure,no_subtree_check,async)
/export/egmintel 192.168.1.48(rw,nohide,insecure,no_subtree_check,async)

192.168.1.48 是我的树莓派地址,nfs 客户端。 然后我重启了nfs服务器:

service nfs-kernel-server restart

客户端: nfs-common 已安装:

pi@raspberrypi ~ $ sudo apt-get install nfs-common 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nfs-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.

尝试挂载命令时超时:

sudo mount -t nfs -o proto=tcp,port=2049 192.168.1.78:/ shareIntel

注意:我在树莓派上安装了 KURA,并且打开了端口:2049/tcp、32771/tcp、892/udp

我不知道我错过了什么无法在我的桌面和我的树莓派之间使用 NFS 共享文件。

提前感谢您的帮助!

【问题讨论】:

    标签: linux raspberry-pi ubuntu-14.04 mount nfs


    【解决方案1】:

    我想通了,我在我的桌面上设置了防火墙。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-18
      • 2013-07-29
      相关资源
      最近更新 更多