海思 NFS环境搭建

环境

Ubuntu 16.04

安装

sudo apt-get install nfs-kernel-server

设置NFS目录

vim /etc/exports
末尾追加:
/home/hisi/nfs *(rw,sync,no_root_squash)
/home/hisi/nfs 这个就是你的NFS共享目录
*:表示允许所以网段
rw :读写权限
sync:资料同步写入内在和硬盘
no_root_squash:客户端共享目录使用者权限

重启服务

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

测试

showmount -e
开发板挂载
mount -t nfs -o nolock 172.16.34.85:/home/hisi/nfs nfs_share

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章