天天看點

在兩台linux間通過nfs共享檔案(ubuntu&deepin)

步驟1

安裝nfs服務

sudo apt install nfs-kernel-server

步驟2

服務端建立目錄

mkdir /home/<user>/Desktop/share_files

用戶端建立目錄

mkdir /home/<user>/Desktop/share_file

記得把<user>替換成自己的使用者名

步驟3

服務端設定權限

sudo vi /etc/exports

#加上一行,<client_ip>可以設定為*,表示所有機器都可挂載

/home/<user>/Desktop/share_files <client_ip>(rw,sync,no_root_squash,insecure)

步驟4

繼續閱讀