Varnish 缓存安装与配置
第 10 章 varnish - a state-of-the-art, high-performance HTTP accelerator
10.1. Varnish Install
http://varnish.projects.linpro.no/
-
install
$ sudo apt-get install varnish
-
/etc/default/varnish
$ sudo vim /etc/default/varnish DAEMON_OPTS="-a :80 \ -T localhost:6082 \ -f /etc/varnish/default.vcl \ -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
-
/etc/varnish/default.vcl
$ sudo vim /etc/varnish/default.vcl backend default { .host