找回密码
 注册
搜索
查看: 1165|回复: 0

[ARM资料] AM335x(TQ335x)学习笔记——配置NFS网络文件系统

[复制链接]
发表于 2015-11-9 11:16:17 | 显示全部楼层 |阅读模式

   硬件平台:TQ335XB开发板
  1、安装NFS 服务
  :~$ sudo apt-get install nfs-kernel-server
  2、创建NFS 共享目录
  假设 NFS 共享目录是/home/nfs
  ~$ sudo mkdir /home/nfs
  3、配置NFS
  :~$ vi /etc/exports
  在/etc/exports 文件末尾加入下面一行:
  /home/nfs *(rw,sync,no_subtree_check,no_root_squash)
  如下图所示:

  允许所有用户访问 NFS 共享目录
  4、启动NFS 服务器
  启动 portmap 和nfs-kernel-server 服务:
  :~$ sudo service portmap start
  ~$ sudo service nfs-kernel-server start
  注:如果开发板不能挂载到宿主机可以试下以下方式:
  :~$ sudo exportfs –a
  :~$ sudo /etc/init.d/portmap restart
  :~$ sudo /etc/init.d/nfs-kernel-server restart
  5、本地验证NFS
  :~$ ls /home/nfs
  helloworld.c
  $sudo mount localhost:/home/nfs /mnt
  $ls /mnt
  helloworld.c
  $sudo umont /mnt
高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-6-27 03:22 , Processed in 0.045039 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表