环境
Ubuntu 16.04
安装
sudo apt-get install nfs-kernel-server
设置NFS目录
sudo 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
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处!
更多精彩内容,欢迎访问一只海星的主页