Varnish 安装配置

初次安装

如果在纯净的centos7上安装

yum install epel-release
yum install varnish

centos6安装过升级到7

yum update jemalloc

或者重新来过

rpm --nodeps -e jemalloc
yum install jemalloc

已经安装过varnish4的,泄了。

rpm --nodeps -e $(rpm -qf /etc/yum.repos.d/varnish*.repo)
yum install varnish


Installation on RedHat

Installing Varnish Cache is as simple as enabling our package repository and installing the packages. Varnish Cache 4.0 is supported on EL6 and EL7, and Varnish Cache 3.0 is supported on EL5 and EL6.

Varnish 4.0:

If you are on RHEL 6 or a compatible distribution, use:

  1. rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.0.el6.rpm

  2. yum install varnish

For RHEL 7 and compatible distributions, use:

  1. rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.0.el7.rpm

  2. yum install varnish

Varnish 3.0:

If you are on RHEL 5 or a compatible distribution, use:

  1. rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el5.rpm

  2. yum install varnish

For RHEL 6 and compatible distributions, use:

  1. rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el6.rpm

  2. yum install varnish

The --no-signature is only needed on initial installation, since the Varnish GPG key is not yet in the yum keyring.

Varnish is also distributed in the EPEL (Extra Packages for Enterprise Linux) package repositories. However, while EPEL allows new versions to be distributed, it does not allow for backwards-incompatible changes. Therefore, new major versions will not hit EPEL and it is not necessarily up to date.


转载于:https://my.oschina.net/smartsales/blog/511461

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值