0

我尝试在 stackoverflow install rabbitmq-server上关注此链接,但它不起作用。出现错误 No package 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
4

1 回答 1

1

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

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

或者

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

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

于 2015-12-14T12:02:45.737 回答