- 论坛徽章:
- 0
|
我的跟你差不多,上网速度还行,但是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 编辑 ] |
|