一.Windows环境下安装
1.erlang下载:https://www.erlang-solutions.com/resources/download.html
或者:https://www.erlang.org/downloads
2.rabbitmq-server下载:https://www.rabbitmq.com/install-windows.html
链接:https://pan.baidu.com/s/1Bnj5iMKghksQJvkIUvwnng
提取码:yzi8
3.安装可视化插件:
rabbitmq-plugins enable rabbitmq_management
二.Centos环境下安装
1.erlang安装:
地址:http://erlang.org/download/
yum方式:
yum install erlang #安装
如果你用的国内的yum源可以不存在
rpm方式:
地址:https://www.erlang-solutions.com/resources/download.html
wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_23.1-1~centos~7_amd64.rpm #下载
yum install -y esl-erlang_23.1-1~centos~7_amd64.rpm #安装
tar方式:
otp_src_22.3.tar.gz
网盘链接:https://pan.baidu.com/s/1iUxwtTfpjXqcN4ln63U9fg
提取码 :0i5a
wget http://erlang.org/download/otp_src_23.1.tar.gz #下载
tar -zxvf otp_src_23.1.tar.gz #解压
mv otp_src_23.1 erlang #改名称
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel #安装各种erlang需要的依赖库,包括gcc, kernel-devel,ncurses-devel等等
cd erlang/ #进入
./configure --prefix=/usr/erlang --without-javac #进行configure安装环境配置,--prefix=/usr/erlang是说明将当前的安装放在usr/erlang文件夹下
make && maker install #编译和安装
2.rabbitmq-server安装:
rpm方式:
地址:https://www.rabbitmq.com/install-rpm.html
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.9/rabbitmq-server-3.8.9-1.el7.noarch.rpm #下载
yum install -y rabbitmq-server-3.8.9-1.el7.noarch.rpm #安装
tar方式:
地址:https://www.rabbitmq.com/install-generic-unix.html
wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.8.9/rabbitmq-server-generic-unix-3.8.9.tar.xz #下载
xz -d rabbitmq-server-generic-unix-3.8.9.tar.xz #解压成tar
tar -xvf rabbitmq-server-generic-unix-3.8.9.tar #解压
配置环境变量:
vim /etc/profile export PATH=$PATH:/usr/rabbitmq/sbin export PATH=$PATH:/usr/erlang/bin source /etc/profile
安装可视化插件
rabbitmq-plugins enable rabbitmq_management
关闭防火墙
systemctl stop firewalld.service #关闭 systemctl status firewalld.service #查看状态
启动
rabbitmq-server