基本配置与启动
修改 /etc/varnish/default.vcl
代码语言:javascript复制[root@h101 varnish]# vim /etc/varnish/default.vcl
[root@h101 varnish]# grep -v "#" /etc/varnish/default.vcl
vcl 4.0;
backend default {
.host = "www.boohee.com";
.port = "80";
}
sub vcl_recv {
}
sub vcl_backend_response {
}
sub vcl_deliver {
}
[root@h101 varnish]#
重新加载 VCL
代码语言:javascript复制[root@h101 varnish]# /etc/init.d/varnish reload
Loading vcl from /etc/varnish/default.vcl
Current running config name is reload_2015-08-19T22:45:05
Using new config name reload_2015-08-19T22:46:38
VCL compiled.
VCL 'reload_2015-08-19T22:46:38' now active
available 0 boot
available 0 reload_2015-08-19T22:43:00
available 0 reload_2015-08-19T22:43:13
available 0 reload_2015-08-19T22:45:05
active 0 reload_2015-08-19T22:46:38
Done
[root@h101 varnish]#