在centos7上安装rabbitmq

时间:2015-05-11 23:35:21

标签: rabbitmq

我正在尝试在centos7上安装rabbotmq。 按照官方指示,我跑了:

sudo yum install rabbitmq-server-3.5.1-1.noarch.rpm

我收到此错误:

Loaded plugins: fastestmirror
Examining rabbitmq-server-3.5.1-1.noarch.rpm: rabbitmq-server-3.5.1-1.noarch
Marking rabbitmq-server-3.5.1-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.5.1-1 will be installed
--> Processing Dependency: erlang >= R13B-03 for package: rabbitmq-server-3.5.1-1.noarch
http://repos.fedorapeople.org/repos/peter/erlang/epel-7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.hoobly.com
 * extras: linux.mirrors.es.net
 * updates: mirror.pac-12.org
--> Finished Dependency Resolution
Error: Package: rabbitmq-server-3.5.1-1.noarch (/rabbitmq-server-3.5.1-1.noarch)
           Requires: erlang >= R13B-03
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

然后我尝试使用以下说明安装erlang: Installing rabbitmq-server on RHEL

它似乎已经安装,但我的rabbitmq安装仍然失败并显示相同的消息。 任何想法如何解决问题?

3 个答案:

答案 0 :(得分:7)

按照说明导致我错误:No package rabbitmq-server-3.6.1-1.noarch.rpm available.

然后我只是尝试:yum install rabbitmq-server,它对我有用。

或者结帐这个:Rabbitmq at Digitalocean - 我曾经在我的服务器上配置网络监控。

答案 1 :(得分:4)

这是我与之斗争的事情,并发现最好的解决方案是从yum之外的独立RPM安装Erlang和RabbitMQ;请参阅RMQ文档中的Install Erlang。具体来说,RabbitMQ提供的精简版Erlang安装(请参阅here)应该可以轻松安装,然后允许您从RabbitMQ站点下载的RPM安装RMQ。如果该包不起作用,那么请尝试Erlang Solutions的Erlang发行版。

答案 2 :(得分:0)

这是我用来在CentOS 7上安装rabbitmq的ansible playbook。

- name: install epel-release
  yum: name=epel-release state=latest
  tags: erlang

- name: install erlang from EPEL
  yum: name=erlang state=latest
  tags: erlang

- name: install new rabbitmq
  yum: name=https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm state=present