在Amazon EC2上安装Varnish Cache 3.0

时间:2022-09-19 14:38:05

Just a quick question to see if anyone knows how to install Varnish Cache 3.0 on an Amazon EC2 Instance without having to build from source? I have previously installed on many servers running Ubuntu and CentOS, however I'm having trouble with EC2 Instances.

只是一个简单的问题,看看是否有人知道如何在Amazon EC2实例上安装Varnish Cache 3.0而不必从源代码进行构建?我以前安装过许多运行Ubuntu和CentOS的服务器,但是我在EC2实例上遇到了麻烦。

I've updated the repos to include the latest version (https://www.varnish-cache.org/installation/redhat), but only some of the packages are comign from varnish-3.0 (varnish-debuginfo.x86_64), whereas some are still coming from amzn-main (varnish.x86_64) after doing yum list.

我已经更新了repos,以包含最新的版本(https://www.varnish-cache.org/installation/redhat),但是只有部分包来自varnish-3.0 (varnish-debuginfo.x86_64),而有些包仍然来自amzn-main (varnish.x86_64)。

Does anyone know how to get around this? I've also tried --enablerepo=varnish-3.0 but that still tries to install Varnish 2.1.5

有人知道怎么解决这个问题吗?我也尝试过,enablerepo= Varnish -3。0,但是它仍然试图安装Varnish 2.1.5

Thanks for any help in advance

谢谢你的帮助

1 个解决方案

#1


2  

For me, it was something to do with yum repo priorties. So first make you have the plugin installed, with:

对我来说,这与百胜餐饮集团(yum repo priorties)有关。首先让你安装这个插件:

yum install yum-priorities

Then edit /etc/yum.repos.d/varnish.repo adding a line "priority=1"

然后编辑/etc/yum.repos.d /清漆。重新编写一个“priority=1”行

To be safe, run "yum clean all", then when you next try "yum install varnish" you should get the version from varnish.repo rather than Amazon's default.

为了安全起见,运行“yum clean all”,然后当你下次尝试“yum安装清漆”时,你应该从清漆中得到版本。回购而不是亚马逊的默认。

#1


2  

For me, it was something to do with yum repo priorties. So first make you have the plugin installed, with:

对我来说,这与百胜餐饮集团(yum repo priorties)有关。首先让你安装这个插件:

yum install yum-priorities

Then edit /etc/yum.repos.d/varnish.repo adding a line "priority=1"

然后编辑/etc/yum.repos.d /清漆。重新编写一个“priority=1”行

To be safe, run "yum clean all", then when you next try "yum install varnish" you should get the version from varnish.repo rather than Amazon's default.

为了安全起见,运行“yum clean all”,然后当你下次尝试“yum安装清漆”时,你应该从清漆中得到版本。回购而不是亚马逊的默认。