第 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
84 0
|
存储 缓存 网络协议
译|High-Performance Server Architecture(下)
译|High-Performance Server Architecture(下)
89 0
|
索引
问题复盘:Kibana did not load properly. Check the server output for more information
问题复盘:Kibana did not load properly. Check the server output for more information
446 0
问题复盘:Kibana did not load properly. Check the server output for more information
|
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.
2019 0