您的位置:首页 > 其它

在windows环境中使用varnish

2015-07-21 18:14 295 查看
varnish 的windows 版本下载地址:
http://sourceforge.net/projects/cygvarnish/files/windows-zip-bundle/
启动:varnish:

C:\varnish\bin>varnishd -a :80 -T :3500 -f c:/varnish/etc/default.vcl -s file,c:/varnish/var/cache,1000M

-a:80表示,让varnish监听在80端口。

-T是为varnish指定一个管理端口;

-f指定所要使用的配置文件;

后面的参数只是让varnish使用文件缓存,大小为1000M,当然,应该根据实际情况指定大小;

启动varnish后,如果我们请求http://地址:端口/,就可以等到200OK状态码,那表示varnish已经在正确滴接受请求。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: