1. 程式人生 > >NFS的介紹及服務端安裝配置、配置選項

NFS的介紹及服務端安裝配置、配置選項

c89 數據傳輸 net nfs配置 MF RoCE mage tap blog

一、NFS介紹
NFS是Network File System的縮寫
NFS最早由Sun公司開發,分2,3,4三個版本,2和3由Sun起草開發,4.0開始Netapp公司參與並主導開發,最新為4.1版本
NFS數據傳輸基於RPC協議,RPC為Remote Procedure Call的簡寫。
NFS應用場景是:A,B,C三臺機器上需要保證被訪問到的文件是一樣的,A共享數據出來,B和C分別去掛載A共享的數據目錄,從而B和C訪問到的數據和A上的一致
技術分享圖片

技術分享圖片

14.2 NFS服務端安裝配置
yum install -y nfs-utils rpcbind
vim /etc/exports //加入如下內容
/home/nfstestdir 192.168.133.0/24(rw,sync,all_squash,anonuid=1000,anongid=1000)

保存配置文件後,執行如下準備操作
mkdir /home/nfstestdir
chmod 777 /home/nfstestdir
systemctl start rpcbind
systemctl start nfs
systemctl enable rpcbind
systemctl enable nfs

14.3 NFS配置選項

NFS的介紹及服務端安裝配置、配置選項