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 |