gpt4 book ai didi

linux - 树莓派 : can't share file using NFS

转载 作者:太空宇宙 更新时间:2023-11-04 13:00:37 26 4
gpt4 key购买 nike

我无法在我的桌面(作为 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

我不知道我错过了什么,无法在我的 destop 和我的 Raspberry pi 之间使用 NFS 共享文件。

预先感谢您的帮助!

最佳答案

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

关于linux - 树莓派 : can't share file using NFS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33996750/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com