偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

從Squid 2.7到Squid 3.0的配置改變一覽

系統(tǒng) Linux
我們?cè)趨⒖加嘘P(guān)Squid的資料時(shí),可能會(huì)發(fā)現(xiàn)有些資料適用于老版本的Squid,但是自己使用的是當(dāng)前最新的Squid 3.x版本,有些配置項(xiàng)并不通用。本文總結(jié)了一些常會(huì)用到的配置在Squid 2.7和Squid 3.0之間的不同之處。

從1996年到現(xiàn)在,Squid發(fā)展了很長(zhǎng)的時(shí)間。Squid 3.0的***個(gè)穩(wěn)定版在2007年底發(fā)布,與之前的2.x系列有一些不同。本文列舉一些常見(jiàn)的Squid 3.0與Squid 2.7在配置方面的不同之處。

Squid 3.0最重要的新特性:

  1. Code converted to C++, with significant internal restructuring and rewrites.
  2. ICAP implementation (RFC 3507 and www.icap-forum.org)
  3. Edge Side Includes (ESI) implementation (www.esi.org)

更多的請(qǐng)參考官方說(shuō)明

來(lái)說(shuō)說(shuō)配置方法的不同之處(只說(shuō)我自己實(shí)際使用的)

./configure的配置項(xiàng)

./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版本去掉了以下選項(xiàng):

--enable-dlmalloc    不再需要

--enable-epoll    系統(tǒng)會(huì)自己選擇***的I/O Loop Method

--enable-truncate     不再需要

--enable-follow-x-forwarded-for    沒(méi)有此項(xiàng)配置了

增加了以下選項(xiàng):

--disable-mempools    相當(dāng)于2.7配置文件里面的memory_pools off,適合內(nèi)存使用較大的情況,系統(tǒng)會(huì)調(diào)用free()來(lái)清除沒(méi)用到的緩存內(nèi)存

--with-maxfd=65535    相當(dāng)于ulimit -n 65535,2.7配置文件里面的max_filedescriptors 65535

配置文件(squid.conf)差別

在Squid3.0版本的配置文件中,如下主要tag發(fā)生了變化

acl    去掉了對(duì)src為all的定義,已集成;對(duì)protocol的定義簡(jiǎn)寫為proto

http_port     去掉了選項(xiàng)http11和act_as_origin;增加了類型http_status

cache_peer    去掉了選項(xiàng)http11

header_access    刪除了此tag,以request_header_access和reply_header_access取代

server_http11    刪除了此tag

incoming_rate    刪除了此tag

memory_pools    刪除了此tag,在./configure的時(shí)候?qū)崿F(xiàn)

max_filedescriptors    刪除了此tag,在./configure的時(shí)候?qū)崿F(xiàn)

上面只列出了我自己實(shí)際配置Squid時(shí),3.0版本和2.7版本的不同之處,關(guān)于更多的大家可以參考官方文檔。

參考文檔

http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE14-RELEASENOTES.html

責(zé)任編輯:yangsai 來(lái)源: Blogbus
相關(guān)推薦

2011-03-15 15:47:25

Squidiptables

2009-07-16 14:09:24

Flex3到Flex4

2009-11-26 15:51:38

Squid開源系統(tǒng)

2011-05-23 10:29:31

Fedora 15

2011-03-31 14:44:55

cactisquid監(jiān)控

2011-03-31 14:28:15

2011-03-31 13:40:48

2009-11-30 13:26:25

Suse代理SQUID

2015-01-22 10:13:50

Windows 10

2010-11-15 09:55:35

Oracle轉(zhuǎn)換函數(shù)

2011-01-11 09:53:28

linux進(jìn)程

2011-01-11 10:06:14

linux進(jìn)程

2021-06-08 09:47:44

Java面向對(duì)象

2023-11-08 07:45:47

Spring微服務(wù)

2019-04-26 14:21:34

手機(jī)色彩蘋果

2012-09-18 09:50:41

2010-09-14 10:02:39

獲取Squid

2010-10-14 16:55:00

MySQL聯(lián)結(jié)查詢

2017-03-06 16:34:12

虛擬個(gè)人助理

2009-03-03 20:44:06

桌面虛擬化Xendesktop虛擬化
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)