Varnish軟件主頁地址:
http://www.varnish-cache.org
Varnish下載地址:
http://repo.varnish-cache.org/source/varnish-2.1.5.tar.gz
安裝三部曲
tar –zxvf varnish-2.1.5.tar.gz
cd varnish-2.1.5
./configure --prefix=/opt/varnish
make && make install
Varnish需要pcre支持,如果服務器沒有安裝pcre-devel會提示需要指定prce目錄。
Centos服務器上使用yum install pcre-devel安裝
checking for PCRE... no No package 'libpcre' found Consider adjusting the PKG_CONFIG_PATH environment variable if you Alternatively, you may set the environment variables PCRE_CFLAGS |