说明:epel是linux系统中的一个yum更新源,有时通过yum无法找到安装包时可以安装epel后找到相关安装包。
- #yum install epel-release
- #rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el7.rpm
- #yum install varnish
#wget https://repo.varnish-cache.org/source/varnish-4.1.0.tar.gz
或
#wget http://mirror.cnop.net/varnish/varnish-4.1.0.tar.gz
#tar -zxvf varnish-4.1.0.tar.gz
#cd varnish-4.1.0
#yum -y install gcc zlib-devel zlib readline-devel ncurses-devel zlib1g-dev pcre-devel libpcre3-dev gcc-c++ autoconf automake
#./configure --prefix=/usr/local/varnish
#make && make install
出现以下说明成功: