求教squid的安装步骤,该如何处理

WBOY
Release: 2016-06-13 12:17:47
Original
856 people have browsed it

求教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;
Copy after login



下面是配置 在squid.conf中添加
<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 />
Copy after login

其他配置看自己喜好添加  安装包去网上下 我是装的3.49的

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!