Showing posts with label Varnish (software). Show all posts
Showing posts with label Varnish (software). Show all posts

Saturday, September 17, 2016

FreeBSD: Installing Varnish

Command (Search):

# pkg search varnish


Result:

varnish-libvmod-maxminddb-1.0.0 Varnish Module (vmod) for accessing maxminddb geoip data
varnish-libvmod-saintmode-1.0.0_1 Varnish Module (vmod) for detecting failing backends
varnish-nagios-1.1.20151214    Nagios plugin to check status of Varnish
varnish4-4.1.3                 High-performance HTTP accelerator


Command (Install):

# pkg install varnish4


Result:

 # pkg install varnish4
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
varnish4: 4.1.3

Number of packages to be installed: 1

The process will require 2 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing varnish4-4.1.3...
===> Creating groups.
Using existing group 'varnish'.
===> Creating users
Using existing user 'varnish'.
Using existing user 'varnishlog'.
[1/1] Extracting varnish4-4.1.3: 100%
Message from varnish4-4.1.3:
QUICK-START GUIDE

It's two in the morning and someone posted a link to your website on
slashdot.  Don't panic, it takes only a minute to set up Varnish in
front of your web server:

1) Install Varnish
2) Reconfigure your web server to listen on localhost:8080
3) echo 'varnishd_enable="YES"' >>/etc/rc.conf
4) /usr/local/etc/rc.d/varnishd start

Refer to the documentation for more advanced configuration.


Command (Delete):

# pkg delete varnish4


Result:

Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
varnish4-4.1.3

Number of packages to be removed: 1

The operation will free 2 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling varnish4-4.1.3...
[1/1] Deleting files for varnish4-4.1.3: 100%
==> You should manually remove the "varnish" user.
==> You should manually remove the "varnishlog" user.
==> You should manually remove the "varnish" group