NFS (network file system) (client-server)
概念圖
Method
前置作業
- Sever和Client分別創建資料夾
- mkdir /data -p ( -p → 當前目錄下沒有這個目錄就建立一個 ; 有的話就不報錯 ) ⇒ Sever 建立分享資料夾
- mkdir /nfs-data -p ⇒ Client 建立連結資料夾
- ls -al /nfs-data ⇒ 確認該資料夾為空的
Server端設定
- sudo yum install nfs-utils -y ⇒ 下載 nfs 套件
- systemctl enable rpcbind ⇒ 使下次開機自動開啟 rpcbind
- systemctl enable nfs ⇒ 使下次自動開啟 nfs