前几天搭建好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

运行成功!


更多相关文章

  1. 获取Android应用程序的Linux UID
  2. 设置查看linux 造成程序Core dumped 的函数调用层次
  3. iptables:传统的Linux防火墙管理程序
  4. linux socket 程序被ctrl+c或者异常终止,再次起程序时提示该端口
  5. Linux实用程序编写了一个matlab .mat文件
  6. 修复linux grub引导程序
  7. 我应该在哪里添加Yocto位烤任务来创建工作文件夹符号链接?
  8. Linux中动态链接库总结
  9. Linux程序设计——文件操作(标准I/O库)

随机推荐

  1. android CoordinatorLayout 使用
  2. Ubuntu 9.04安装Android编译环境
  3. android colors.xml 开发必备
  4. Android 旋转图片
  5. Android Parcelable Example (转)
  6. Android 系统图片
  7. Android 圆角矩形ImageView
  8. Google Android 文档笔记-Training-Getti
  9. android:persistentDrawingCache用法说明
  10. Gson包冲突解决方案