tar zxvf xcache-2.0.1.tar.gz
cd xcache-2.0.1
phpize
./configure --with[......]
采用redhat,rpm安装方式。
rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm
yum install varnish
配置文件在
/etc/varnish/default.vcl 和 /etc/sysconfig/varnish
以下为我的配置文件。
[……]