Centos6下安裝Varnish和安裝Nginx類似,我選擇RPM安裝方式,這里官方給出了先安裝repo源,再使用yum安裝的方式,這里可以完全參照官方的安裝方法。PS:為何我朝不能完美安裝?
1、安裝repo源
rpm --nosignature -i a >https://repo.varnish-cache.org/redhat/varnish-4.0.el6.rpm/a>
2、更新yum源
#yum clean all
#yum list all
3、安裝varnish
yum install varnish
4、網絡timeout解決辦法
PS:為何我朝不能完美安裝?沒辦法,爬出去下載手動安裝吧。
# yum install jemalloc -y
# rpm -ivh varnish-libs-4.0.3-1.el6.x86_64.rpm
# rpm -ivh varnish-4.0.3-1.el6.x86_64.rpm
5、如果不能啟動請參見:
https://www.jb51.net/os/RedHat/314660.html