时间:2021-07-01 10:21:17 帮助过:15人阅读
tar zxvf ....
cd sq....
./configure
--prefix=/usr/local/squid
--enable-storeio=diskd,ufs
--enable-poll
--disable-hostname-checks
--enable-underscores
--enable-x-accelerator-vary
--enable-kill-parent-hack
--enable-err-language="Simplify_Chinese"
--enable-default-err-languages="Simplify_Chinese"
--disable-ident-lookups
--with-maxfd=65535;
maximum_object_size 10240 KB ### 能缓存的最大对象为 10M
maximum_object_size_in_memory 512 KB ### 内存中缓存的最大对象 512K
cache_mem 256 MB ###分配的大小
refresh_pattern \.(jpg
------解决思路----------------------
png
------解决思路----------------------
gif
------解决思路----------------------
mp3
------解决思路----------------------
xml
------解决思路----------------------
html
------解决思路----------------------
htm
------解决思路----------------------
css
------解决思路----------------------
js) 1440 50% 2880 ignore-reload