我的習慣寫代碼使用win,運行環境使用linux,一般使用 linux 掛載win 的共享目錄,像這樣:linux
mount -t cifs //192.168.36.1/www /mnt/www -o username=administrator,password=root,rw,dir_mode=0777,file_mode=0777
還有一種方式是 linux 運行samb 服務器,win 下能夠使用 \192.168.36.1 方式訪問:服務器
apt install samba smbd
samba 配置 http://www.javashuo.com/article/p-vpuucoir-eu.html.net