Install Varnish Cache on CentOS 6/7
Posted on 15/10/2015 by mervintankw - 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
댓글 없음:
댓글 쓰기