Varnish安装

Varnish软件主页地址:

http://www.varnish-cache.org

Varnish下载地址:

http://repo.varnish-cache.org/source/varnish-2.1.5.tar.gz

安装三部曲

tar –zxvf varnish-2.1.5.tar.gz

cd varnish-2.1.5

./configure --prefix=/opt/varnish

make && make install

Varnish需要pcre支持,如果服务器没有安装pcre-devel会提示需要指定prce目录。

Centos服务器上使用yum install pcre-devel安装

 checking for PCRE... no
configure: error: Package requirements (libpcre) were not met:

No package 'libpcre' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PCRE_CFLAGS
and PCRE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
 

你可能感兴趣的:(职场,varnish,休闲)