RabbitMQ服务端代码是使用并发式语言Erlang编写的,安装Rabbit MQ的前提是安装Erlang。
Erlang下载地址:Downloads - Erlang/OTP
需要注意的一点是Rabbit MQ和Erlang有版本匹配,需要下载两者匹配的版本进行安装,否则会出现安装Rabbit MQ失败。
部分版本匹配如下:
| Unsupported RabbitMQ Series | Minimum required Erlang/OTP | Maximum supported Erlang/OTP | Notes |
|---|---|---|---|
|
3.6.163.6.15 |
19.3 |
20.3.x |
RabbitMQ 3.6 was released on 2015-12-22, and reached end of life on 2018-05-31, we strongly discourage its useOn Windows, Erlang/OTP 20.2 changed default cookie file locationVersions prior to 19.3.6.4 have known bugs (e.g. ERL-430, ERL-448) that can prevent RabbitMQ nodes from accepting connections (including from CLI tools) and stoppingVersions prior to 19.3.6.4 are vulnerable to the ROBOT attack (CVE-2017-1000385) |
|
3.6.143.6.133.6.123.6.11 |
R16B03 |
20.1.x |
RabbitMQ 3.6 was released on 2015-12-22, and reached end of life on 2018-05-31, we strongly discourage its use |
|
3.6.103.6.93.6.83.6.73.6.63.6.53.6.4 |
R16B03 |
19.3.x |
RabbitMQ 3.6 was released on 2015-12-22, and reached end of life on 2018-05-31, we strongly discourage its use |
|
3.6.33.6.23.6.13.6.0 |
R16B03 |
18.3.x |
RabbitMQ 3.6 was released on 2015-12-22, and reached end of life on 2018-05-31, we strongly discourage its use |
|
3.5.x |
R14B04 |
17.5.x |
RabbitMQ 3.5 was released on 2015-03-11, and reached end of life on 2017-09-11, we strongly discourage its use |
|
3.4.x |
R13B03 |
16B03 |
RabbitMQ 3.4 was released 2014-10-21, and reached end of life 2017-05-31, we strongly discourage its us |
| RabbitMQ version | Minimum required Erlang/OTP | Maximum supported Erlang/OTP | Notes |
|---|---|---|---|
|
3.7.133.7.123.7.113.7.103.7.93.7.83.7.7 |
20.3.x |
21.3.x |
Erlang/OTP 19.3.x support was discontinued as of Jan 1st, 2019For the best TLS support, the latest version of Erlang/OTP 21.x is recommendedOn Windows, Erlang/OTP 20.2 changed default cookie file location |
|
3.7.63.7.53.7.43.7.33.7.23.7.13.7.0 |
19.3 |
20.3.x |
For the best TLS support, the latest version of Erlang/OTP 20.3.x is recommendedErlang versions prior to 19.3.6.4 have known bugs (e.g. ERL-430, ERL-448) that can prevent RabbitMQ nodes from accepting connections (including from CLI tools) and stoppingVersions prior to 19.3.6.4 are vulnerable to the ROBOT attack (CVE-2017-1000385)On Windows, Erlang/OTP 20.2 changed default cookie file location |
根据本机位数选择erlang下载版本。
双击 直接next,进行安装。
安装完成之后需要配置一下环境变量(跟配置java环境变量一致)
此电脑-->鼠标右键“属性”-->高级系统设置-->环境变量-->“新建”系统环境变量
变量名:ERLANG_HOME
变量值就是刚才erlang的安装地址,点击确定。
然后双击系统变量path
点击“新建”,将%ERLANG_HOME%bin加入到path中。
最后windows键+R键,输入cmd,再输入erl,看到版本号就说明erlang安装成功了。
至此,erlang安装成功!
第二步:下载并安装RabbitMQ
下载地址:http://www.rabbitmq.com/download.html
双击下载后的.exe文件,安装过程与erlang的安装过程相同。
RabbitMQ安装好后接下来安装RabbitMQ-Plugins。打开命令行cd,输入RabbitMQ的sbin目录。
输入命令:rabbitmq-plugins enable rabbitmq_management,页面如下说明安装成功。
输入 rabbitmqctl status , 如果出现以下的图,说明安装是成功的,并且说明现在RabbitMQ Server已经启动了,运行正常。
打开sbin目录,双击rabbitmq-server.bat
等几秒钟看到这个界面后,访问http://localhost:15672
输入账号:guest 密码:guest
成功登录,至此,RabbitMQ安装完成。
官网下载RabbitMq 和erlang 速度较慢,可百度云进行下载哟!
链接:https://pan.baidu.com/s/16Gyu2cai1Sg6o9B4fLudBw
提取码:valx
每天都要认真工作呀!



