Ubuntu nfs檔案共享服務

2022-06-30 17:36:11 字數 797 閱讀 6572

網路檔案系統,能使使用者訪問網路上別處的檔案就像在使用自己的計算機一樣。

nfs伺服器和客戶機均使用ubuntu20.4

sudo apt install nfs-kernel-server
sudo systemctl start nfs-kernel-server.service
在設定匯出目錄以前必須確保匯出目錄是存在的

在 /etc/exports 中進行配置

# /home/exports  匯出的目錄

# * 可掛載的ip *代表不做限制

# rw 代表可讀可寫

# sync 代表檔案同步

# no_subtree_check 禁用安全驗證

# no_root_squash 允許任何客戶端系統的root使用者修改root擁有的檔案

/home/exports *(rw,async,no_subtree_check,no_root_squash)

sudo exportfs -a
sudo apt install nfs-common
sudo mkdir /home/example
sudo mount 192.168.0.118:/home/exports /home/example/
參考ubuntu文件-網路檔案系統

Ubuntu nfs 檔案共享

一 服務端操作 1.安裝nfs服務 sudo apt get install nfs kernel server 2.開啟 etc exports檔案,在末尾加入 home sdb newspic rw,sync,no root squash,no subtree check 其中 home sdb...

nfs 檔案共享 服務

需要rpc服務 root xujiaxuan ftp service rpcbind start root xujiaxuan ftp chkconfig rpcbind on 設定開機自動啟動 開啟nfs服務 alt鍵 printscreen 截圖為當前視窗 修改 vi etc exports a...

檔案共享服務 NFS SAMBA FTP

這幾天和端午假期一直在看書的第五章,檔案共享服務,嘗試了一下離開電腦,純看書,感覺不太好,因為不能隨時驗證自己的想法和書上的步驟,不是我想要的結果,所以我選擇看書的時候還是開著虛擬機器跑著centos。這個章節講了三個東西 1.nfs 2.samba 3.ftp 然後在主機ping虛擬機器ping不...