pc 访问 修改 samba 服务的文件 慢

来源:互联网 发布:淘宝商品定价公式 编辑:程序博客网 时间:2024/06/08 11:41

win8 访问 samba 访问慢

在网上查询后,大概有下面几种解决方案。




1: [global]
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384


2:在 smb.conf 裡添加下面的語句就可以解決smb ports = 139


3:


修改 /opt/etc/samba/smb.conf,加入


[global]


read size = 512 
socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=512 SO_SNDBUF=512 IPTOS_LOWDELAY 
getwd cache = yes


follow symlinks = no 
wide links = no


read raw = yes 
write raw = yes


large readwrite = yes 
getwd cache = yes 
strict locking = no 
fake oplocks = yes 
oplocks = no


4:关闭防火墙和selinux


5.vhosts和/etc/sysconfig/network    主机名保持一致