第 53 章 varnish - a state-of-the-art, high-performance HTTP accelerator

简介:

53.1. Varnish Install

http://varnish.projects.linpro.no/

  1. install

    				
    $ sudo apt-get install varnish
    				
    				
  2. /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"
    		    	
    		    	
  3. /etc/varnish/default.vcl

    			    
    $ sudo vim /etc/varnish/default.vcl
    
    backend default {
    	.host = "127.0.0.1";
    	.port = "8080";
    }
    			    
    			    
  4. reload

    				
    $ sudo /etc/init.d/varnish force-reload
     * Stopping HTTP accelerator				[ OK ]
     * Starting HTTP accelerator
    				
    		




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
缓存 前端开发 安全
译|High-Performance Server Architecture(上)
译|High-Performance Server Architecture
90 0
|
存储 缓存 网络协议
译|High-Performance Server Architecture(下)
译|High-Performance Server Architecture(下)
93 0
|
Web App开发 tengine 安全
Understanding HTTP/2: History, Features, Debugging, and Performance
HTTP/2 is an optimized transfer protocol over the previous version and offers various advantages, such as increased security, simplified development p.
2027 0
|
前端开发 JavaScript
Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.
Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.ABP 已经对该网站禁用了,但还是显示这个信息。
1374 0