CentOS7 RabbitMQ安装

mac2024-12-08  26

安装erlang

访问erlang官网

添加yum repository

# Adding repository entry wget https://packages.erlang-solutions.com/erlang-solutions-2.0-1.noarch.rpm rpm -Uvh erlang-solutions-2.0-1.noarch.rpm

配置CentOS上的 EPEL(https://fedoraproject.org/wiki/EPEL),通过这个repository安装所需依赖。

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

安装指定版本的erlang

#find your package with correct version yum --showduplicates list erlang | expand #install yum -y install erlang-22.1-1.el7-x86_64 #check yum list installed | grep erlang

安装rabbitmq

1.访问Package Cloud-provided script

2.复制并执行quick install curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

3.安装指定版本的rabbitmq-server

```bash #find your package with correct version yum --showduplicates list rabbitmq-server | expand #install yum -y install rabbitmq-server-3.8.0-1.el7-noarch #check yum list installed | grep rabbitmq-server ```
最新回复(0)