在centos7上安装rabbitmq

ztigrdn8  于 2023-08-05  发布在  RabbitMQ
关注(0)|答案(4)|浏览(150)

我想在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安装仍然失败,并显示相同的消息。有什么办法解决这个问题吗?

fzsnzjdm

fzsnzjdm1#

下面的指令导致我的错误:第一个月
然后我简单地试着:yum install rabbitmq-server,这对我来说很有用。
看看这个:Rabbitmq at Digitalocean-我曾经在我的服务器上配置网络监控。

au9on6nz

au9on6nz2#

这是我一直在努力解决的问题,我发现最好的解决方案是从yum之外的独立RPM安装Erlang和RabbitMQ;参见RMQ文档中的Install Erlang。具体来说,RabbitMQ提供的精简版Erlang安装(参见here)应该很容易安装,然后允许您从RabbitMQ站点下载的RPM安装RMQ。如果这个包不起作用,那么试试Erlang Solutions的Erlang发行版。

voj3qocg

voj3qocg3#

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

- 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

字符串

pb3s4cty

pb3s4cty4#

你必须先安装Earlang,这对我来说很有效:

curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
sudo yum clean all
sudo yum makecache
sudo yum install erlang -y
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
sudo yum install rabbitmq-server -y
rpm -qi rabbitmq-server
systemctl start rabbitmq-server
sudo systemctl enable rabbitmq-server
sudo systemctl status rabbitmq-server

字符串

相关问题