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