-->

Thursday, December 25, 2014

Varnish Installation using yum

You can install varnish using the yum or source. We are going to install via yum in this post

Things to consider prior to installation is which version of Varnish cache you are going to install and select the appropriate version to install from the Varnish repo site. You will see each version having 3 folders based on the linux release. Select the appropriate one during the installation.





We are going to proceed with installation of varish 3.0 on Red hat enterprise Linux 5.5 with 32 bit architecture.

Step 1:- You only need to install the 3 rpms listed on the varnish website which you can also install via yum.

wget https://repo.varnish-cache.org/redhat/varnish-3.0/el5/i386/varnish/varnish-debuginfo-3.0.1-1.el5.i386.rpm 
rpm -ivh varnish-debuginfo-3.0.1-1.el5.i386.rpm  

wget https://repo.varnish-cache.org/redhat/varnish-3.0/el5/i386/varnish/varnish-libs-3.0.1-1.el5.i386.rpm 
rpm -ivh varnish-libs-3.0.1-1.el5.i386.rpm  

wget https://repo.varnish-cache.org/redhat/varnish-3.0/el5/i386/varnish/varnish-3.0.1-1.el5.i386.rpm
 yum install varnish-3.0.1-1.el5.i386.rpm --nogpgcheck  

This will install the Varnish on your Linux server.

Step 2:- Next for starting Varnish cache enter the following command

 /etc/init.d/varnish start  

Step 3:- You might consider adding varnish to the startup so that in case of server restart the varnish service is started by default use the following command for starting varnish service at startup

 chkconfig --level 345 varnish on  

That concludes your installation. Next we are going to install varnish on the centos 7 using yum, than we are going to perform source installation of varnish and see some configuration part. And finally we will see some helpful varnish cache commands used for monitoring.


0 comments:

Post a Comment