1、下載hane NFS Server安裝
2、安裝后打開
3、在電腦上創建個共享文件夾,我這里選擇D:\share
4、在hane win nfs server 軟件上選擇Edit\preferences
5、選擇exports
6、選擇Edit exports file, 在最后添加D:\share -name:nfs,然后點擊Save
如果添加root權限使用這個D:\share -name:nfs -alldirs -maproot:0
7、ubuntu中安裝nfs-common
sudo apt install nfs-common
8、使用sudo mount -t nfs -o rw,nolock windos ip:/nfs ./test/ 將剛才配置的文件路徑掛載到Ubuntu的test目錄?