海思 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

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