Install Varnish Cache on CentOS 6/7

by | 15 Oct 2015 | Cache, CentOS, Linux, Open Source, OS, RHEL, Server, Technology, Varnish Cache, Wordpress | 0 comments

Varnish Cache is a tool that helps to cache web pages for quicker loading of web pages.

Here we will cover how to install Varnish Cache on CentOS 6/7.

Step 1: Add EPEL

CentOS 6

rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS 7

rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Step 2: Download Varnish Cache

CentOS 6

rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el6.rpm

CentOS 7

rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el7.rpm

Step 3: Install Varnish Cache

CentOS 6/7

yum install varnish -y

Step 4: Start Varnish Cache

CentOS 6

sudo service varnish start

CentOS 7

systemctl start varnish

Step 5: Set Varnish Cache to run on boot

CentOS 6

chkconfig --level 345 varnish on

CentOS 7

system enable varnish

 

That’s it! It’s that simple to setup Varnish Cache.

Feel free to contact me at [email protected] if you have any questions.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Related Posts

APCCentOSFedoraLinuxOSPHPProgrammingServerTechnology
Install APC (Alternative PHP Cache) in CentOS 5/6/7 and Fedora 20/21

Install APC (Alternative PHP Cache) in CentOS 5/6/7 and Fedora 20/21

APC (Alternative PHP Cache) is a free and open source tool to cache PHP codes. 1. Install Dependency Packages for APC yum install php-pear php-devel httpd-devel pcre-devel gcc make -y 2. Install APC using PECL (PHP Extension Community Library) pecl install apc...