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.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章