Varnish Cache(反向網(wǎng)站快取服務器)
v3.0 官方版- 軟件大?。?span itemprop="fileSize">2.45 MB
- 軟件語言:中文
- 軟件類型:國產(chǎn)軟件 / 服務器區(qū)
- 軟件授權: 免費軟件
- 更新時間:2018-01-18 18:29:52
- 軟件等級:
- 軟件廠商: -
- 應用平臺:WinXP, Win7, Win8, Win10
- 軟件官網(wǎng): http://europeautoinsurance.com/
相關軟件
nitrado方舟服務器免費版v5.4.8 安卓版
4.53 MB/中文/5.0
Nginx穩(wěn)定版v1.23.0 官方版
1.67 MB/英文/10.0
The Bat! Pro Edition(免費郵件客戶端)v9.3.4.0 最新版
113.00 MB/多國語言[中文]/10.0
ksweb建站服務器完整版v3.986 安卓版
200.00 MB/中文/1.0
Apache Lounge壓力測試工具v2.4.47 官方版
19.00 MB/中文/10.0
軟件介紹人氣軟件精品推薦相關文章網(wǎng)友評論下載地址
Varnish cache是一款功能強大專業(yè)的高性能反向代理服務器和HTTP加速器的工具,幫助朋友輕松的進行http相關的加速服務器的建立,有需要這款反向代理服務器的朋友就來IT貓撲下載吧!
Varnish Cache功能特色
初步流支持,無論是在錯過和通行證
壓縮和解壓縮的支持,包括縫合在一起
壓縮ESI片段
插件(vmods)
改進的文件
參數(shù)的默認值
Varnishncsa現(xiàn)在有自定義日志格式的支持
Varnishlog,varnishncsa和varnishhist現(xiàn)在可以過濾掉的記錄
匹配多個表達式。
Varnish的結構特點
Varnish把數(shù)據(jù)存放在服務器的內(nèi)存中,這種模式的效率是最高的,不過重啟后數(shù)據(jù)會消失,官方透露3.0版本可以解決這個問題。Varnish可以設置0~60秒的精確緩存時間,不過32位的機器支持的緩存文件最大為2 GB。Varnish采用VCL的配置,而且具有強大的管理功能,如top、stat、admin、lis,所以管理方式比較靈活。Varnish的狀態(tài)機設計不僅巧妙,結構也很清晰,利用二叉堆管理緩存文件,即可達到隨時刪除的目的。
與傳統(tǒng)的Squid 相比,Varnish具有性能更高、速度更快、管理更加方便等諸多優(yōu)點:
Varnish采用了“Visual Page Cache”技術,所有緩存的數(shù)據(jù)都直接從內(nèi)存讀取,而Squid從硬盤讀取緩存的數(shù)據(jù),它避免了Squid頻繁在內(nèi)存、磁盤中交換文件,性能要比Squid高。
Varnish穩(wěn)定性比Squid高,宕機率很低。
通過Varnish管理端口,可以使用正則表達式快速、批量地清除部分緩存,這一點是Squid不能具備的。
Varnish Cache使用方法
如果您是 RedHat/CentOS 系統(tǒng)想安裝 varnish,您需要安裝以下軟件包:
automake
autoconf
libtool
ncurses-devel
libxslt
groff
pcre-devel
pkgconfig
Varnish可以支持更多的并發(fā)連接。因為Varnish的TCP連接與釋放比Squid快,所以在高并發(fā)連接情況下可以支持更多的TCP連接。
以下是在配置好 yum 包管理器的情況下運行
yum install -y automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig
[root@node18 ~]# yum install -y automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* extras: mirrors.grandcloud.cn
* updates: mirrors.grandcloud.cn
Setting up Install Process
Package automake-1.9.6-2.3.el5.noarch already installed and latest version
Package autoconf-2.59-12.noarch already installed and latest version
Package libtool-1.5.22-7.el5_4.i386 already installed and latest version
Package ncurses-devel-5.5-24.20060715.i386 already installed and latest version
Package libxslt-1.1.17-4.el5_8.3.i386 already installed and latest version
Package groff-1.18.1.1-13.el5.i386 already installed and latest version
Package pcre-devel-6.6-6.el5_6.1.i386 already installed and latest version
Package 1:pkgconfig-0.21-2.el5.i386 already installed and latest version
Nothing to do
[root@node18 ~]#
下載varnish源代碼并編譯安裝
mkdir varnish_setup
cd varnish_setup/
wget http://repo.varnish-cache.org/source/varnish-2.1.5.tar.gz
tar zxf varnish-2.1.5.tar.gz
cd varnish-2.1.5
./autogen.sh
./configure --prefix=/usr
make
cd bin/varnishtest && ./varnishtest tests/*.vtc ? # <== 這一步執(zhí)行測試,很費時,可省略
cd ../.. ? ? # <=== 如果執(zhí)行了測試,否則執(zhí)行安裝
make install
注意:本文的安裝與默認安裝不同
varnishd將被安裝到 /usr/sbin/varnishd
配置文件 /usr/etc/varnish/default.vcl
下面是安裝的詳細記錄:
[root@node18 ~]# mkdir varnish_setup
[root@node18 ~]# cd varnish_setup/
[root@node18 varnish_setup]# wget http://repo.varnish-cache.org/source/varnish-2.1.5.tar.gz
--2012-11-20 10:23:32-- ?http://repo.varnish-cache.org/source/varnish-2.1.5.tar.gz
正在解析主機 repo.varnish-cache.org... 194.31.39.155
Connecting to repo.varnish-cache.org|194.31.39.155|:80... 已連接。
已發(fā)出 HTTP 請求,正在等待回應... 200 OK
長度:1530856 (1.5M) [application/x-gzip]
Saving to: `varnish-2.1.5.tar.gz'
100%[======================================>] 1,530,856 ? 51.2K/s ? in 20s
2012-11-20 10:23:53 (73.2 KB/s) - `varnish-2.1.5.tar.gz' saved [1530856/1530856]
[root@node18 varnish_setup]#
[root@node18 varnish_setup]# tar zxf varnish-2.1.5.tar.gz
[root@node18 varnish_setup]# cd varnish-2.1.5
[root@node18 varnish-2.1.5]# ls
aclocal.m4 ?config.guess ?depcomp ?install-sh ? Makefile.in ?varnishapi.pc.in
autogen.sh ?config.h.in ? doc ? ? ?lib ? ? ? ? ?man
bin ? ? ? ? config.sub ? ?etc ? ? ?LICENSE ? ? ?missing
ChangeLog ? configure ? ? include ?ltmain.sh ? ?README
compile ? ? configure.ac ?INSTALL ?Makefile.am ?redhat
[root@node18 varnish-2.1.5]#
[root@node18 varnish-2.1.5]# ./autogen.sh
+ aclocal
+ libtoolize --copy --force
+ autoheader
+ automake --add-missing --copy --foreign
+ autoconf
[root@node18 varnish-2.1.5]# ./configure --prefix=/usr
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/Makefile
config.status: creating bin/varnishadm/Makefile
config.status: creating bin/varnishd/Makefile
config.status: creating bin/varnishlog/Makefile
config.status: creating bin/varnishhist/Makefile
config.status: creating bin/varnishncsa/Makefile
config.status: creating bin/varnishreplay/Makefile
config.status: creating bin/varnishstat/Makefile
config.status: creating bin/varnishsizes/Makefile
config.status: creating bin/varnishtest/Makefile
config.status: creating bin/varnishtop/Makefile
config.status: creating doc/Makefile
config.status: creating doc/sphinx/Makefile
config.status: creating etc/Makefile
config.status: creating include/Makefile
config.status: creating lib/Makefile
config.status: creating lib/libvarnish/Makefile
config.status: creating lib/libvarnishapi/Makefile
config.status: creating lib/libvarnishcompat/Makefile
config.status: creating lib/libvcl/Makefile
config.status: creating lib/libjemalloc/Makefile
config.status: creating man/Makefile
config.status: creating redhat/Makefile
config.status: creating varnishapi.pc
config.status: creating config.h
config.status: executing depfiles commands
[root@node18 varnish-2.1.5]# make
make ?all-recursive
make[1]: Entering directory `/root/varnish_setup/varnish-2.1.5'
Making all in include
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/include'
Making all in lib
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/lib'
Making all in libvarnishcompat
make[3]: Entering directory `/root/varnish_setup/varnish-2.1.5/lib/libvarnishcompat'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include ? ?-g -O2 -MT daemon.lo -MD -MP -MF ".deps/daemon.Tpo" -c -o daemon.lo daemon.c; \
then mv -f ".deps/daemon.Tpo" ".deps/daemon.Plo"; else rm -f ".deps/daemon.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -g -O2 -MT daemon.lo -MD -MP -MF .deps/daemon.Tpo -c daemon.c ?-fPIC -DPIC -o .libs/daemon.o
...
mkdir .libs
gcc -g -O2 -o .libs/varnishsizes varnishsizes.o ?../../lib/libvarnish/.libs/libvarnish.so -lrt -lnsl ../../lib/libvarnishcompat/.libs/libvarnishcompat.so ../../lib/libvarnishapi/.libs/libvarnishapi.so -lpcre -lm -lcurses -lpthread
creating varnishsizes
make[3]: Leaving directory `/root/varnish_setup/varnish-2.1.5/bin/varnishsizes'
make[3]: Entering directory `/root/varnish_setup/varnish-2.1.5/bin'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/varnish_setup/varnish-2.1.5/bin'
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/bin'
Making all in man
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/man'
Making all in etc
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/etc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/etc'
Making all in doc
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/doc'
Making all in sphinx
make[3]: Entering directory `/root/varnish_setup/varnish-2.1.5/doc/sphinx'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/varnish_setup/varnish-2.1.5/doc/sphinx'
make[3]: Entering directory `/root/varnish_setup/varnish-2.1.5/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/varnish_setup/varnish-2.1.5/doc'
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/doc'
Making all in redhat
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/redhat'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/redhat'
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5'
make[1]: Leaving directory `/root/varnish_setup/varnish-2.1.5'
[root@node18 varnish-2.1.5]#
[root@node18 varnish-2.1.5]# cd bin/varnishtest && ./varnishtest tests/*.vtc
# ? ?top ?TEST tests/a00000.vtc passed (0.001s)
# ? ?top ?TEST tests/a00001.vtc passed (0.001s)
# ? ?top ?TEST tests/a00002.vtc passed (0.001s)
# ? ?top ?TEST tests/a00003.vtc passed (0.001s)
# ? ?top ?TEST tests/a00004.vtc passed (0.001s)
# ? ?top ?TEST tests/a00005.vtc passed (0.001s)
# ? ?top ?TEST tests/a00006.vtc passed (0.001s)
# ? ?top ?TEST tests/a00007.vtc passed (0.001s)
# ? ?top ?TEST tests/a00008.vtc passed (1.806s)
# ? ?top ?TEST tests/a00009.vtc passed (0.256s)
# ? ?top ?TEST tests/a00010.vtc passed (0.002s)
# ? ?top ?TEST tests/b00000.vtc passed (0.757s)
# ? ?top ?TEST tests/b00001.vtc passed (0.675s)
# ? ?top ?TEST tests/b00002.vtc passed (0.683s)
...
# ? ?top ?TEST tests/v00023.vtc passed (0.575s)
# ? ?top ?TEST tests/v00024.vtc passed (0.587s)
# ? ?top ?TEST tests/v00025.vtc passed (0.673s)
# ? ?top ?TEST tests/v00026.vtc passed (0.590s)
# ? ?top ?TEST tests/v00028.vtc passed (0.581s)
# ? ?top ?TEST tests/v00029.vtc passed (1.310s)
# ? ?top ?TEST tests/v00030.vtc passed (0.585s)
# ? ?top ?Slowest test: tests/p00005.vtc 8.022s
# ? ?top ?Total tests run: ? 196
# ? ?top ?Total duration: 204.346s
[root@node18 varnishtest]#
[root@node18 varnishtest]# cd ../..
[root@node18 varnish-2.1.5]# make install
Making install in include
make[1]: Entering directory `/root/varnish_setup/varnish-2.1.5/include'
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/include/varnish" || mkdir -p -- "/usr/include/varnish"
/usr/bin/install -c -m 644 'shmlog.h' '/usr/include/varnish/shmlog.h'
/usr/bin/install -c -m 644 'shmlog_tags.h' '/usr/include/varnish/shmlog_tags.h'
/usr/bin/install -c -m 644 'stat_field.h' '/usr/include/varnish/stat_field.h'
/usr/bin/install -c -m 644 'stats.h' '/usr/include/varnish/stats.h'
/usr/bin/install -c -m 644 'varnishapi.h' '/usr/include/varnish/varnishapi.h'
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/include'
make[1]: Leaving directory `/root/varnish_setup/varnish-2.1.5/include'
Making install in lib
...
Making install in redhat
make[1]: Entering directory `/root/varnish_setup/varnish-2.1.5/redhat'
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5/redhat'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5/redhat'
make[1]: Leaving directory `/root/varnish_setup/varnish-2.1.5/redhat'
make[1]: Entering directory `/root/varnish_setup/varnish-2.1.5'
make[2]: Entering directory `/root/varnish_setup/varnish-2.1.5'
make[2]: Nothing to be done for `install-exec-am'.
/root/varnish_setup/varnish-2.1.5/install-sh -d -m 0755 /usr/var/varnish
test -z "/usr/lib/pkgconfig" || mkdir -p -- "/usr/lib/pkgconfig"
/usr/bin/install -c -m 644 'varnishapi.pc' '/usr/lib/pkgconfig/varnishapi.pc'
make[2]: Leaving directory `/root/varnish_setup/varnish-2.1.5'
make[1]: Leaving directory `/root/varnish_setup/varnish-2.1.5'
[root@node18 varnish-2.1.5]#
[root@node18 varnish-2.1.5]# whereis varnish
varnish: /usr/etc/varnish /usr/include/varnish
[root@node18 varnish-2.1.5]# whereis varnishd
varnishd: /usr/sbin/varnishd /usr/man/man1/varnishd.1
[root@node18 varnish-2.1.5]# ls /usr/etc/varnish/default.vcl
/usr/etc/varnish/default.vcl
[root@node18 varnish-2.1.5]#
更多>> 軟件截圖
推薦應用
xampps X64 163.00 MB
下載/中文/10.0 v8.1.2 最新版Apache HTTP Server 38.00 MB
下載/英文/5.0 v2.4.46 for Windows 官方安裝版IIS7.0完整安裝包 174.00 MB
下載/英文/1.0 安裝版服務器安全狗 26.01 MB
下載/中文/10.0 v5.0.24188 官方版RaidenMAILD(雷電MAILD) 15.50 MB
下載/英文/1.0 v4.2.8 特別版迷你ASP服務器(Sws AspWebServer) 1.33 MB
下載/中文/10.0 v2.3 官方版小旋風asp webserver軟件 1.00 MB
下載/中文/10.0 官方安裝版啊D組件查詢程序 213.00 KB
下載/中文/10.0 v1.0 綠色版
其他版本下載
精品推薦
相關文章
下載地址
Varnish Cache(反向網(wǎng)站快取服務器) v3.0 官方版
查看所有評論>> 網(wǎng)友評論
更多>> 猜你喜歡