ubuntu varnish 安装

一.安装方法

来自:https://www.varnish-cache.org/content/varnish-cache-410-tp1

Installation on Ubuntu

Varnish is distributed in the Ubuntu package repositories, but the version there might be out of date, and we generally recommend using the packages provided by varnish-cache.org. Please be advised that we only provide packages for Ubuntu's LTS releases, not all the intermediate releases. These packages might still work fine on newer releases.

The only supported architecture is amd64.

To use the varnish-cache.org repository and install Varnish under Ubuntu 12.04 (Precise Pangolin) do the following as root:

  1. apt-get install apt-transport-https

  2. curl https://repo.varnish-cache.org/GPG-key.txt | apt-key add -

  3. echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list

  4. apt-get update

  5. apt-get install varnish

For Ubuntu 14.04 (Trusty Tahr) replace precise above with trusty.

Debian users please follow these instructions.

官网:https://www.varnish-cache.org/


二.简介

Varnish是一款高性能的开源HTTP加速器,挪威最大的在线报纸 Verdens Gang 使用3台Varnish代替了原来的12台Squid,性能比以前更好。SQUID 是功能最全面的,但是架构太老,性能不咋的

Varnish 是内存缓存,速度一流,但是内存缓存也限制了其容量,缓存页面和图片一般是挺好的
Nginx 本来是反向代理/web服务器,用了插件可以做做这个副业,但是本身不支持特性挺多
ATS 目前是一个不错的选择

wKioL1W_CJnCJYLRAAGM_vXyXdE992.jpg

wKiom1W_BqTxTIU3AALHj7JDoSE082.jpg





你可能感兴趣的:(varnish)