在主机上安装nfs服务器

  apt-get   install nfs-kernel-server

安装完成后启动nfs服务器

  sudo  /etc/init.d/nfs-kernel-server start

设置环境变量 

  gedit   /etc/exports

添加如下一句话 

  /home/share 192.168.1.*(rw,sync,no_root_squash)

前面是你要共享的文件目录的绝对路径,后面是你要挂载的设备的网段,后面是一些参数,一般这么设置就可以

你也可以自己查查。

然后再开发板上打这样一条命令

  mount -t   nfs 192.168.1.108:/home/share   /mnt/ -o nolock

相关文章:

  • 2021-08-11
  • 2021-12-11
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-11-21
猜你喜欢
  • 2021-12-25
  • 2021-11-22
  • 2022-12-23
  • 2021-05-28
  • 2021-12-15
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案