免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2943 | 回复: 1
打印 上一主题 下一主题

[proxy] squid代理上网,速度很慢,求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-12 11:23 |只看该作者 |倒序浏览
开始确实很快,但是现在好慢好慢

我清空了spool/squid/下所有目录,重新squid -z生成

改了参数
cache_dir ufs /**/ 500 32 512
cache_mem 也由128M升为256M

为什么还是没有明显改观??

谁来赐教

论坛徽章:
0
2 [报告]
发表于 2006-05-12 16:24 |只看该作者
我的跟你差不多,上网速度还行,但是cache功能好像没发挥作用....
我的想法是先在某个时间计划任务wget获取某个网站上所有tif.pdf等需要处理的图像,然后再由内网工作站进行相应的数据处理,这样的话,应该是wget后,所有的tif.pdf图像在squid的cache中,速度应该很快才对,但现实情况是cache没起作用... ....内网的工作站获得图像的时间跟原先差不多..下边是我的squid.conf, 高手帮忙...

server: FreeBSD6.0
CPU: 赛扬2.4
Mem: 256M
squid: 2.5 stable11

http_port 8080
cache_mem 96 MB
cache_dir ufs /usr/local/squid/cache 10000 16 256
cache_swap_low 90
cache_swap_high 95
half_closed_clients off
maximum_object_size 4096000  KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_access_log /usr/local/squid/logs/access.log
dns_nameservers 192.168.1.2 61.134.1.4 61.134.1.9
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost

[ 本帖最后由 riverhan 于 2006-5-12 16:27 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP