一、安装依赖Erlang
打开RabbitMQ官网:https://www.rabbitmq.com/
![](https://img-blog.csdnimg.cn/img_convert/3c8c52bf348a49e8be9f165680ee995b.png)
点击Get Started
![](https://img-blog.csdnimg.cn/img_convert/98cb03aef068445b912ba1e5cdd21fe1.png)
点击Download + Installation
![](https://img-blog.csdnimg.cn/img_convert/f08206b9512e4160ac18644823992703.png)
点击 Chocolatey or Installer
![](https://img-blog.csdnimg.cn/img_convert/0865585f8ba443ccb56c350a77aa29af.png)
点击? Erlang/OTP Version Tree
![](https://img-blog.csdnimg.cn/img_convert/a041af9e54534cc39afff7ee8b4d80ad.png)
点击win64
![](https://img-blog.csdnimg.cn/img_convert/650981d3601c40fc85fcbc3fb301efba.png)
下载完成后,右击“以管理员身份”安装
配置Erlang环境变量 :ERLANG_HOME和RABBITMQ_SERVER
![](https://img-blog.csdnimg.cn/img_convert/72489f9cec0f4c91874402b25c06f6d1.png)
![](https://img-blog.csdnimg.cn/img_convert/4b7efcda57d0461991dc3eb8cfc6201b.png)
path添加:%ERLANG_HOME%/bin和%RABBITMQ_SERVER%\sbin
![](https://img-blog.csdnimg.cn/img_convert/853c80ba9a834f0290c185734066dc7f.png)
命令行运行:erl
![](https://img-blog.csdnimg.cn/img_convert/298cbbdce54147e393cc41506f7eef65.png)
出现以上内容说明Erlang安装完成。
二、rabbitmq安装
![](https://img-blog.csdnimg.cn/img_convert/0119e73d95b84b2eb47bf6a9f1a5d395.png)
下载
双击安装
![](https://img-blog.csdnimg.cn/img_convert/93b13eb8a3d2444b98235d59e06453ef.png)
安装RabbitMQ-Plugins插件
进入安装目录,运行rabbitmq-plugins enable rabbitmq_management
![](https://img-blog.csdnimg.cn/img_convert/ba182b6717154c07b2d2932c7bfdfae9.png)
执行rabbitmqctl.bat,出现以上内容,说明成功
然后双击运行sbin目录下的rabbitmq-server.bat
等几秒钟,在浏览器访问http://localhost:15672/
![](https://img-blog.csdnimg.cn/img_convert/32c1f9af153b433d9dcd3e22d04b3b0c.png)
输入默认账号:guest,密码:guest,登陆成功
![](https://img-blog.csdnimg.cn/img_convert/1fc16b9fb6d348aaaf073c802b32b9ac.png)
然后将RabbitMQ做成Windows服务
以管理员身份运行cmd
![](https://img-blog.csdnimg.cn/img_convert/def09729bca940989a54677596b9145d.png)
进入sbin目录,执行rabbitmq-service.bat install
![](https://img-blog.csdnimg.cn/img_convert/34dfcca6c95f418d8f39e25deef333c2.png)