安装squid3.0,配置squid3.0笔记
2008-05-06 09:18
666 查看
1.解开压缩包 tar xzf squid-3.0.RELEASE-src.tar.gz cd /usr/local/squid/src/ squid-*.*.RELEASE / 2.安装到/opt/case/squid目录 ./configure --prefix=/opt/case/squid make make install 3.启动服务 (1)产生Squid所有的缓存目录,执行./sbin/squid –z 如果提示 visible_hostname错误 ,找到 visible_hostname , 加一行 visible_hostname xx.xx就好了 如果提示 Permission denied ,执行 chmod -R 777 var/cache (2)启动服务 ./sbin/squid 观察Squid是否运行使用命令 ./sbin/squid -k check squid3.0配置文件 acl all src 0.0.0.0/0.0.0.0 acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 192.168.0.0/16 acl manager proto cache_object http_access allow manager localhost http_access allow localhost http_access allow all forwarded_for off http_port 3128 transparent cache_mem 256 MB cache_swap_low 85 cache_swap_high 93 maximum_object_size 20480 KB minimum_object_size 0 KB maximum_object_size_in_memory 32 KB cache_dir aufs /opt/app/squid/var/cache 10000 32 256 access_log /opt/app/squid/var/logs/access.log #access_log /dev/null cache_log /dev/null cache_store_log none acl QUERY urlpath_regex cgi-bin .php .cgi .avi .wmv .rm .ram .mpg .mpeg .zip .exe .rar cache deny QUERY half_closed_clients off refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i .gif 10 30% 30 ignore-reload refresh_pattern -i .jpg 10 30% 30 ignore-reload refresh_pattern -i .png 10 30% 30 ignore-reload refresh_pattern -i .css 10 30% 30 ignore-reload refresh_pattern -i .swf 10 30% 30 ignore-reload refresh_pattern -i .cur 10 30% 30 ignore-reload refresh_pattern -i .js$ 10 30% 30 ignore-reload refresh_pattern -i .htm 1 30% 20 refresh_pattern -i .html 1 30% 20 refresh_pattern . 1 20% 30 acl apache rep_header Server ^Apache broken_vary_encoding allow apache cache_effective_user squid cache_effective_group squid
相关文章推荐
- Squid3.0的安装配置
- squid3.0编译安装和详细配置
- Squid3.0的安装配置
- Squid的Linux下安装配置笔记(下)
- Squid3.0反向代理的安装与配置
- Squid3.0反向代理(加速模式)配置及安装
- centos下简单配置安装Squid 3.0反向代理
- Squid3.1.7源码安装和配置笔记
- OPENCV学习笔记(一):安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- Squid 3.0 反向代理(加速模式)配置及安装
- Linux下Squid3.0反向代理的安装与配置
- (一)jmeter3.0安装以及环境配置---学习笔记
- daliu_IT学习Android笔记第六篇--JDK安装与环境变量配置
- maven学习笔记 maven的安装和配置
- 【学习笔记】spring roo安装配置
- CKEditor 3.0(FCKEditor3.0)的简单安装配置使用
- 【Vim】Vim使用笔记之一——安装和配置Vim
- 学习笔记之IIS安装和配置图解全过程
- 爬虫 Heritrix 学习笔记 —— Heritrix安装与简单配置
- qt安装配置笔记(不定期更新)