Varnish installation and configuration (CentOS is used as an example in this article) install the dependency package sudoyuminstall-yautomakeautoconflibtoolncurses-devellibjavastgroffpcre-develpkgconfig to download and install wget-chttp: // rep...
Varnish installation and configuration (this article uses CentOS as an example) install the dependency package sudo yum install-y automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig download install wget-c http://repo.varnish-cache.org/source/varnish-3.0.2.tar.gztar zxvf varnish-3.0.2.tar.gzcd varnish-3.0.2. /autogen. sh. /configure-prefix =/usr/local/varnishmakesudo make install create the configuration file sudo vim/etc/varnish. conf write configuration information backend default {. host = "127.0.0.1 ″;. port = "80";}: wq save and exit. run varnishsudo/usr/local/varnish/sbin/varnish-f/etc/varnish. conf-s malloc, 1G-T 127.0.0.1: 2000-a 0.0.0.0: 88 parameter description: -f configuration information-s memory allocation method and size-T management interface-a varnish listening port (0.0.0.0: 88 is listening for requests from all IP addresses to port 88)
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