ubuntu 配置nfs server


1:安裝nfs

sudo apt-get install nfs-kernel-server

2:定義nfs允許掛載的目錄及權限

打開/etc/exports文件,在末尾加入:

/home/xgc *(rw,sync,no_root_squash)

3:重啟服務

(1):sudo /etc/init.d/portmap restart

(2):sudo /etc/init.d/nfs-kernel-server restart

(3):showmount -e

4:本機測試

sudo mount -t nfs localhost:/home/jeffery /mnt

5:在嵌入式設備上掛載時加-o nolock

sudo mount -t nfs 192.168.10.129:/home/jeffery /mnt/nfs/ -o nolock


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM