您的位置:首页 > 运维架构 > Linux

解决nfs链接开发板出现:nfs:server is not responding,still trying

2013-11-18 21:47 316 查看
前几天搭建好nfs服务器本地链接成功后以为可以了。

今天在PC上交叉编译了一个小程序准备放在开发板上运行,用minicom链接上TQ2440,挂载CentOS 6.4上面的文件夹:mount -o nolock -t nfs 192.168.1.101:/work/nfs /mnt/nfs/

运行arm-linux-gcc编译好的程序,结果出现:nfs:server is not responding,still trying,

google一番以后得知是udp协议的问题,尝试如下命令:

mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.1.1
01:/work/nfs /mnt/nfs/

然后执行:

[root@EmbedSky /]# cd /mnt/nfs
[root@EmbedSky nfs]# ls
hello    makelll
[root@EmbedSky nfs]# ./hello
hello world
hello world
hello world
hello world
hello world

运行成功!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux makefile kernel