Heim >Backend-Entwicklung >PHP-Tutorial >求教squid的安装步骤,该如何处理
求教squid的安装步骤
最近在学习squid的反向代理,求squid的安装配置步骤
------解决思路----------------------
安装步骤
tar zxvf ....<br />cd sq....<br /><br />./configure <br />--prefix=/usr/local/squid <br />--enable-storeio=diskd,ufs <br />--enable-poll <br />--disable-hostname-checks <br />--enable-underscores <br />--enable-x-accelerator-vary<br />--enable-kill-parent-hack <br />--enable-err-language="Simplify_Chinese"<br />--enable-default-err-languages="Simplify_Chinese" <br />--disable-ident-lookups<br />--with-maxfd=65535;
<br />maximum_object_size 10240 KB ### 能缓存的最大对象为 10M<br />maximum_object_size_in_memory 512 KB ### 内存中缓存的最大对象 512K <br />cache_mem 256 MB ###分配的大小<br />refresh_pattern \.(jpg<br><font color='#FF8000'>------解决思路----------------------</font><br>png<br><font color='#FF8000'>------解决思路----------------------</font><br>gif<br><font color='#FF8000'>------解决思路----------------------</font><br>mp3<br><font color='#FF8000'>------解决思路----------------------</font><br>xml<br><font color='#FF8000'>------解决思路----------------------</font><br>html<br><font color='#FF8000'>------解决思路----------------------</font><br>htm<br><font color='#FF8000'>------解决思路----------------------</font><br>css<br><font color='#FF8000'>------解决思路----------------------</font><br>js) 1440 50% 2880 ignore-reload<br />