centos7上没法安装varnish的问题

最开始根据教程走,直接跑命令:

yum install varnish

但是没啥用,一直报错,说是没有这个安装包,nothing to do,后来在serverfault上看到了经典的解决方案。

在纯净的centos7上安装varnish,命令如下:

yum install epel-release
yum install varnish

如何系统里面安装了其他的东西,比如以前安装varnish失败,或者是其他有关varnish的配置,首先你的清除这些东西,可以用如下方法,如下是网友原文:

You installed the jemalloc package from EL6. You need to replace this with the one for EL7. Since you already have the EPEL repo installed, it should be sufficient to do:

yum update jemalloc

Otherwise just remove and reinstall it.

rpm --nodeps -e jemalloc
yum install jemalloc

You installed a repository named varnish-4.0 from somewhere (probably the Varnish Community) but you failed to mention this. You need to remove this, as (a) it’s only intended for EL6, and (b) EPEL already ships Varnish 4.

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

Finally your system should be clean and you can install Varnish.

yum install varnish

未经允许不得转载:哈勃私语 » centos7上没法安装varnish的问题

本文共772个字 创建时间:2017年9月14日15:22   

分享到:更多 ()

相关推荐

  • 暂无文章