How To Install Varnish Cache on CentOS

r00t April 9, 2014

varnish-cache

For those of you who didn’t know, Varnish Cache is a powerful open source HTTP accelerator that can be installed infront of any Webserver. Varnish Cache can improve overall performance of your web server by caching contents. The Varnish cache stores the copy of user request’s and serves the same page when the user revisits the webpage. It makes your website really fast and accelerate your web site performance up-to 300 – 1000x (means 80% or more).

Why use Varnish?

  1. To reduce server load, especially CPU works.
  2. To make a website load faster, because cached and stored in RAM.
  3. To gain more visitors to your website.

Installation Varnish on CentOS

Step 1. To install, first you must add the varnish yum repository information corresponding to your CentOS/RHEL version to yum:

For CentOS 5.x use:

For CentOS 6.x use:

Step 2. Type the following command to install Varnish.

 Step 3. To start Varnish for the first time, type the following command.

 To start Varnish at system start-up, type the following command to make it start at system boots.

Configure Varnish Cache 3.0

Con­fig­ure Var­nish con­fig file (/etc/varnish/default.vcl.)

Commands for Monitoring Varnish Cache

Following are the some useful and helpful Varnish Cache commands for monitoring.

 

Varnish Cache Install Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “Varnish Cache” installation, starting from $10 (Paypal payment). Please contact us to get a best deal!
Share on Google+3Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon0Share on Reddit0Pin on Pinterest0
The Tags:

Leave a Comment