官网:https://www.rabbitmq.com/
erlang对Rabbitmq的支持: https://www.rabbitmq.com/which-erlang.html
erlang 下载地址:https://www.erlang-solutions.com/resources/download.html
RabbitMQ 下载地址:https://github.com/rabbitmq/rabbitmq-server/releases
或者:https://www.rabbitmq.com/releases/rabbitmq-server/
安装环境依赖
在线安装依赖环境:
yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz
安装Erlang
1.下载Erlang
wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_23.1.5-1centos7_amd64.rpm
2.安装
rpm -ivh Erlang rpm包
3.配置环境变量(可以不要)
vim /etc/profile
添加:
ERL_PATH=/usr/local/erlang/bin
PATH=
E
R
L
P
A
T
H
:
ERL_PATH:
ERLPATH:PATH
source /etc/profile 使配置生效,在shell中使用
erl -version 查看是否成功
安装RabbitMQ
1:安装 yum install socat
2:下载:wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.8/rabbitmq-server-3.8.8-1.el6.noarch.rpm
3:安装
rpm -ivh rabbitMQrpm包名