This tutorial shows how to do initial installation Varnish Enterprise 6.0 on Red Hat Enterprise Linux 7 and CentOS 7. Looking for another platform?
Before you can start this tutorial, you should have:
Create the file
/etc/yum.repos.d/varnish-software.repo with the following contents:
[varnish-enterprise] name=Varnish Enterprise baseurl=https://TOKEN:@packagecloud.io/varnishplus/60/el/7/x86_64 repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://TOKEN:@packagecloud.io/varnishplus/60/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300
Enable the Extra Packages for Enterprise Linux (EPEL) repository by installing the
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install Varnish Enterprise and VMODs:
sudo yum install varnish-plus
The configuration files for Varnish are:
The VCL configuration file that is loaded by default when Varnish starts. In this file you can specify the location of your web servers.
The systemd unit file specifying the Varnish parameters, storage engines and the VCL configuration file to load on startup. This file should not be edited but overridden according to systemd best practices.
Varnish is started, stopped, restarted and reloaded using the following commands:
sudo systemctl start varnish sudo systemctl stop varnish sudo systemctl restart varnish sudo systemctl reload varnish
Verify if Varnish is running using the following command:
sudo systemctl status -l varnish
Varnish Enterprise 6.0 has now been installed in RHEL 7 or CentOS 7. At this point it is possible to dive in to VCL and VMODs.