Home > Backend Development > PHP Tutorial > 求教squid的安装步骤

求教squid的安装步骤

WBOY
Release: 2016-06-23 13:37:19
Original
930 people have browsed it

最近在学习squid的反向代理,求squid的安装配置步骤


回复讨论(解决方案)

安装步骤

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



下面是配置 在squid.conf中添加
maximum_object_size 10240 KB  ### 能缓存的最大对象为 10Mmaximum_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
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