linux,windwos之间共享文件的其妙方法

重点在于:linux,windows之间的网络是通畅的

1.http方法。
以一个文件为处理单位,如果有多个文件或目录,可以使用zip压缩成一个文件。
无论linux,windows谁是客户端,谁是服务端,都可以使用python -m SimpleHTTPServer 8000构建http服务器,在客户端中使用wget http://ip_address:8000:/目录结构/文件名,获取文件。

2.共享挂载法
windows对目录设置共享,在linux中使用mount挂载
mount - o username=”yourusername”,password=”yourpasswd” //windows_ip/dirname /mnt

linux中安装samba服务,从而实现windows访问linux共享目录
apt-get install samba
apt-get install smbfs
通过在配置文件中配置共享目录,并重启服务就可以了。
/etc/samba/smb.conf
这里写图片描述

posted @ 2022-03-06 10:39  叶常落  阅读(34)  评论(0编辑  收藏  举报