1.首先去官网下载
wget http://repo.varnish-cache.org/source/varnish-4.1.2.tar.gz
2.解压缩 安装所需其他库文件
tar zxf varnish-4.1.2.tar.gz
编译安装过程可能会缺少以下包 libedit-devel pcre-devel ncurses-devel
yum -y install libedit-devel
yum -y install pcre-devel
yum -y install ncurses-devel
./configure --prefix=/usr/local/varnish \
--bindir=/usr/local/varnish/bin \
--sbindir=/usr/local/varnish/sbin
时间: 2024-11-07 04:37:14