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.
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