Varnish 4.0 Official Document translator-Installation varnish

Source: Internet
Author: User
Tags varnish automake

Installation of Varnish installation Varnish

This section contains preparations for varnish installation, step-by-steps installation, how to get help, where to ask for help, and how to report a bug. It also contains considerations to help you install varnish on certain special systems.

  • Prerequisites

  • Installing Varnish

      • Source or packages?

      • Freebsd

      • Red Hat/centos

      • Debian/ubuntu

  • Compiling Varnish from source

      • Build Dependencies on Debian/ubuntu

      • Build Dependencies on Red Hat/centos

      • Compiling Varnish

      • Installing

  • Getting Help

      • IRC Channel

      • Mailing Lists

      • Trouble tickets

      • Commercial support

  • Reporting bugs

      • Varnish crashes

      • Varnish goes on vacation

      • Varnish does something wrong

  • Platform Specific Notes

      • Transparent hugepages on Redhat Enterprise Linux 6

      • Openvz

  • TCP keep-alive Configuration

Configuration required by Prerequisites

If you want to install varnish you have to meet the conditions:

    • A new, high-profile computer.

    • 64-bit Linux, FreeBSD, or Solaris (x86 only)

    • Root Permissions

Varnish can also be installed on other Unix operating systems, but we do not have extensive and systematic testing. Varnish is also occasionally mentioned to work in:

    • 32-bit Linux, FreeBSD

    • OS X,

    • NetBSD,

    • Openbsd

    • Cywin on Windows

Installing varnish installation Varnish

For open source software you can choose to install the binary package or build your own source code. Binary installation or source installation is only related to personal tastes. If you don't know which one to choose, we recommend you read the whole chapter and choose the one that suits you best.

Source or packages? The source or the binary package

Typical examples of installing varnish specific System Package management related to the current operating system:

Freebsd:

Binary Package Installation

Pkg_add-r Varnish

SOURCE Installation

Cd/usr/ports/varnish && make install clean
Red-hat/centos

We try to keep the latest version of Varnish precompiled rpm in repo.varnish-cache.org view the online Red-hat Installation guide for more information vanish included in the Epel warehouse, due to the new version of the varnish syntax and the old version of the conflict, So as long as the old version is available. So we recommend that you install the latest version of varnish directly from our warehouse, as you said before.

Debian/ubuntu

Varnish is independent on Debian and Ubuntu. Get Varnish can run

sudo apt-get install varnish

Please note that this varnish may not be the latest version. If you need the latest version of varnish, check out the Debian and Ubuntu Online installation Guide

Compiling Varnish from source source code compilation installation

If your system does not have a binary package, or if you want to compile through the source package or other reasons, follow the steps below:

Download the appropriate tar package from http://repo.varnish-cache.org/source/,

Or if you want to modify varnish, you can clone our Git repository,

git clone Git://git.varnish-cache.org/varnish-cache
Build a dependent environment on Debian/ubuntu

In order to build varnish from the source code you need to install some packages on Debian or Ubuntu, which you need:

    • Automake

    • Autotools-dev

    • Libedit-dev

    • Libjemalloc-dev

    • Libncurses-dev

    • Libpcre3-dev

    • Libtool

    • Pkg-config

    • Python-docutils

    • Python-sphinx

Building a Red-hat/centos-dependent environment

These packages are required to be installed under Red-had or CentOS:

    • Autoconf

    • Automake

    • Jemalloc-devel

    • Libedit-devel

    • Libtool

    • Ncurses-devel

    • Pcre-devel

    • Pkgconfig

    • Python-docutils

    • Python-sphinx

Compiling Varinsh compilation varnish

The configuration is based on the conditions that are met by the dependency relationship, and once it is satisfied, you can execute the following command:

CD Varnish-cachesh Autogen.shsh Configuremake

Configure scripts can introduce some parameters, but forget about them now, and we can add parameters while the varnish is running. Before you install it, you may want to run a test suite that will take several minutes to test, and you can have a cup of tea.

Make check

If there are one or two errors, do not worry, but if there are some failures, particularly like B00000.VTC is a test failure, it is indeed a problem, you need to check whether the configure is abnormal.

Installing installation

Finally, the real test with the brave heart:

sudo make install

Varnish will be installed in/usr/local, Varnishd binary is in/usr/local/sbin/varnishd, the default configuration file is in/USR/LOCAL/ETC/VARNISH/DEFAULT.VCL. After the installation is successful, you can view the Varnish Tutorial.

Get Help for assistance

With support for direct access to the varnish team, we will help you as much as we can, and try to simplify the process as often as possible. But please take a moment to organize your thoughts and express your questions before contacting us, and if you just tell us "my varnish can't work" without further information, it will be meaningless.

IRC CHANNEL

The most straightforward way to get our help is to join our IRC channel. Varnish on server irc.linpro.no meaning: time zone is Europe + USA If you are publishing your VCL or related documentation, you can use the http://gist.github.com/

Mailing LISTS

To open or close a mailing list, visit mailman Http://lists.varnish-cache.org/mailman/listinfo

Commercial support

For business support, please contact [email protected] uplex [email protected]

Reporting Bugs report BugPlatform specific notes Special system considerations

In this section you will learn how to adjust the system before some systems run varnish.


Varnish 4.0 Official Document translator-Installation varnish

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.