前几天搭建好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
运行成功!