Windows7访问Debian的samba很慢解决

本文介绍了一个在Windows7与Debian8虚拟机间通过Samba服务器共享文件时遇到的卡顿问题及解决方案。通过对/etc/hosts文件进行特定修改,解决了文件复制过程中的卡顿现象。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、环境:

主机:Windows 7

虚拟机:Debian 8

2、问题:

Debian搭建samba服务器,并配置如下:

[android]
   comment = Android4.4.2
   path = /home/liangqx/Workspace/weiqian/android
   browseable = yes 
   writable = yes 
   public = yes 
   valid users = liangqx

在Windows 7通过问题共享目录,常常会卡顿;复制文件进来时,使用快捷键或点击右键就会卡住,窗口无响应。


3、解决:

发现:

cat /etc/hosts 

127.0.0.1	localhost
127.0.1.1	lqxdebian.weiqian.com	lqxdebian


# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

cat /etc/hostname

lqxdebian


修改/etc/hosts

127.0.0.1	localhost lqxdebian

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

再测试时,可以正常拷贝文件了。


4、总结

参考网友博客http://extjs.org.cn/fatjames/archives/460,得到思路解决,但不太清楚真正的原因。

由于使用的系统不同,具体的修改也有不同,要结合具体的LINUX系统。

继续测试使用,希望不要再有这样的问题,很影响工作效率。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值