- 论坛徽章:
- 0
|
5可用积分
我本来要在两块运行uClinx的板上架NFS服务器和客户端的。按照网上的资料:
(1).配置内核:
进入File Systems --->Network file systems --->选项选中:
NFS file system support
Provide NFSv3 server support / Provide NFSv3 client support (一个客户端一个服务器端)
(2).配置用户选项
进入Network Applications ---> 选项选中:
portmap
进入BusyBox --->选项选中:
mount
mount:support NFS mounts
umount
然后我在服务器端/etc/exports编辑其内容为 /tmp *(rw, sync)
在客户端mount 时:
root:/var>mkdir testnfs
root:/var> mount -t nfs 192.168.2.100:/tmp /var/testnfs/
mount: RPC: Unable to receive; errno = Connection refused
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.2.100:/tmp on /var/testnfs failed: Invalid argument
这时什么原因啊!
我在SUSE linux 主机上运行NFS如下:
exports内容: /tnfs *(rw, sync)
service portmap start
service nfs start
然后在uClinux上mount:
oot:/var> mount -t nfs 192.168.18.168:/tnfs /var/testnfs/
mount: 192.168.18.168:testnfs failed, reason given by server: Permission denied
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.18.168:testnfs on /var/testnfs failed: Invalid argument
我现在都不知道是那端出问题勒,,,那位大虾帮忙看看。。。。 |
最佳答案
查看完整内容
reason given by server: Permission denied.查看日志,如果是说illegal port,服务端加入 (rw,sync,insecure, anonuid=0)因为nfs安全上默认使用1024以下端口进行连接.(insecure)想要正常读写,最简单让客户端映射到服务端的用户为root.(anonuid=0)
|