在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已经在正确滴接受请求。
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已经在正确滴接受请求。
相关文章推荐
- ios 一个正则表达式测试(只可输入中文、字母和数字)
- 计蒜客429根据输入特点划分圆求扇形面积
- ExpandableListView显示省市列表(一)
- mount:Read-only file system Android手机不能挂载读写,终极解决方案
- c语言中如何妙用do...while(0)语句
- 使用Android开发录音和播放功能小程序示例
- 为什么写测试用例?编写测试用例从何着手?测试用例包含什么内容?
- 基本图形算法指南
- 工作总结(一)、c3p0,
- SlidingMenu 详解系列(一)API介绍
- 无可引导光盘时如何成功安装CUCM/IM&Presence等系统的方法汇总
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- 防止图片重复下载方案,图像压缩保存与压缩显示
- mysql source 乱码
- java反射机制入门01
- 程序员人生之路
- Python自学笔记之函数式编程5——返回函数
- android framework SystemUI 修改NavigationBar靠右边
- android开源框架emojicon,妈妈再也不用担心我没表情了
- Qt运行一个实例进程