Linux nfs 服务端、客户端实例

前提:

   前提是先把nfs服务安装好,并启动,服务端、客户端都需要


步骤:

      服务端

  1.       vi /etc/exports        //编辑配置
  2.       service portmap restart       //重启portmap服务(有可能是,因系统而定service rpcbind start)
  3.       service nfs restart       //重启nfs服务
  4.       showmount -e        //显示/etc/exports

      客户端

  1.       mount -t nfs -o nolock 192.168.1.200:/opt/FriendlyARM/Micro2440/ /mnt/ //主机挂载
  2.       umount /mnt        //主机卸载
  3.       service iptables stop       //关闭防火墙
  4.       mount -t nfs -o nolock 192.168.1.200:/opt/FriendlyARM/Micro2440/ /mnt/ //开发板挂载

猜你喜欢

转载自sanyue.iteye.com/blog/2086029