:::: MENU ::::

Install Varnish CentOS 6

This tutorial is intended for system administrators wanting to install Varnish on CentOS 6. The reader should know how to configure a web server or application server and have basic knowledge of the HTTP protocol. Once finished the reader should have a basic Varnish cache up and running with the default configuration.

Varnish is a web application accelerator. You install it in front of your web application and it will speed it up significantly.

Varnish web application accelerator homepage: https://www.varnish-cache.org

Install the Varnish YUM Repository

# rpm -Uvh http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm

Install Varnish web accelerator

Enable Varnish web accelerator at startup

Basic default.vcl

Start Varnish web accelerator

You will now have a basic Varnish web accelerator running on port 8080

Top 5 Varnish commands

varnishstat

Provides all the info you need to spot cache misses and errors.

varnishhist

Provides a histogram view of cache hits/misses

varnishlog

Provides detailed information on requests.

varnishtop

The varnishtop utility reads varnishd shared memory logs and presents a continuously updated list of the most commonly occurring log entries.

varnishadm

Command-line varnish administration used to reload vcl and purge urls.

Managing Varnish with Puppet

If you’re running Puppet we have included the manifest for installing Varnish on CentOS 6. If you’re not running Puppet then you can install it by following the instructions outlined in our CentOS 6 Puppet Install.

This is only the manifest and doesn’t include any of the files (i.e. default.vcl).


  • Derak

    To configure the start-up options in the redhat/centos package, edit /etc/sysconfig/varnish

  • http://codesleepshred.com/ eDDi Hughes

    Just curious, have you upgraded to 3.0.3 yet? I am wanting to try out the streaming support

  • http://quangcaothanglong.vn/ bien quang cao

    Does anyone install varnish with DirectAdmin?
    thanks

  • http://twitter.com/daniel__chen will

    I ‘m going to install the varnish 3.0.3 on CentOS5.4,after run the sh autogen.sh command,I get these error message . but the pkgconfig is exist in system..

  • situsunik

    what need to add in /etc/sysconfig/varnish ?

  • GeorgeRushby

    The configuration options will be in the file.

  • http://netsperience.org/ decibel.places
  • Salah

    update : http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release/ then u have Parent Directory –
    varnish-release-3.0-1.el5.centos.noarch.rpm09-Oct-2013 10:20 2.6K
    varnish-release-3.0-1.noarch.rpm09-Oct-2013 10:20 2.5K