How to setup Varnish 6 on MAC ?

Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. Today I’m sharing the steps to get started with Varnish installation and configuration. By default it will install the latest Varnish version.

STEP 1 : Press Command+Space and type Terminal and press enter/return key.

STEP 2 : Install varnish

STEP 3 : Above command places the varnishd to /usr/local/bins/varnishd.

STEP 4 : Move varnishd to correct location so that you can run which command.

STEP 5 : Now you should be able to run which varnishd

STEP 6 : You can now start up Varnish by using the varnishd command. This command takes a few parameters which can be useful.

Basic options:
-a <[hostname]:port> : listen address, can be specified multiple times.

-f <filename> : VCL, can be specified multiple times.

-p <parameter=value> : set tunable parameters

-S <secretfile> : authentication secret for management

T <hostname:port> : Management interface

-s <storagetype,options> : where and how to store objects