个人习惯写代码使用win,运行环境使用linux,通常使用 linux 挂载win 的共享目录,像这样:
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 配置 https://blog.csdn.net/weed_hz/article/details/21936345
来源:oschina
链接:https://my.oschina.net/u/2502289/blog/1838338