转载:Squid3.0与2.7的配置差异
来源:百度文库 编辑:神马文学网 时间:2024/04/23 20:26:40
Squid3.0最重要的新特性:
- Code converted to C++, with significant internal restructuring and rewrites.
- ICAP implementation (RFC 3507 and www.icap-forum.org)
- Edge Side Includes (ESI) implementation (www.esi.org)
更多的请参考官方说明
来说说配置方法的不同之处(只说我自己实际使用的)
./configure的配置项
./configure --prefix=/usr/local/squid --with-large-files --enable-useragent-log --enable-referer-log --enable-linux-netfilter --enable-x-accelerator-vary --disable-internal-dns --disable-mempools --with-maxfd=65535
3.0版本去掉了以下选项:
--enable-dlmalloc
--enable-epoll
--enable-truncate
--enable-follow-x-forwarded-for
增加了以下选项:
--disable-mempools
--with-maxfd=65535
配置文件(squid.conf)差别
在Squid3.0版本的配置文件中,如下主要tag发生了变化
acl
http_port
cache_peer
header_access
server_http11
incoming_rate
memory_pools
max_filedescriptors
上面只列出了我自己实际配置Squid时,3.0版本和2.7版本的不同之处,关于更多的大家可以参考官方文档。