如何安装在centos7上安装rabbitmq服务器

时间:2015-09-01 09:20:49

标签: rabbitmq centos7 rabbitmq-exchange

我尝试在stackoverflow install rabbitmq-server上关注此链接,但它无效。获取错误没有包rabbitmq-server-3.3.4-1.noarch.rpm可用。

wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
yum install erlang

rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
  yum install rabbitmq-server-3.3.5-1.noarch.rpm

获取错误

[vagrant@localhost ~]$ sudo yum install rabbitmq-server-3.3.4-1.noarch.rpm
Loaded plugins: fastestmirror
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.excellmedia.net
 * epel: epel.mirror.net.in
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
No package rabbitmq-server-3.3.4-1.noarch.rpm available.
Error: Nothing to do

1 个答案:

答案 0 :(得分:1)

您需要使用以下两个命令之一

yum localinstall rabbitmq-server-3.3.4-1.noarch.rpm

rpm -Uvh rabbitmq-server-3.3.4-1.noarch.rpm

其中-U如果已安装包,则更新,        -v用于详细输出,        -h打印哈希输出