官方安装文档:
Installing on Windows — RabbitMQhttps://www.rabbitmq.com/install-windows.html
目前最新Erlang版本下载地址:
下载地址:github.comhttps://github.com/erlang/otp/releases/download/OTP-25.3.2/otp_win64_25.3.2.exe
rabbitMQ下载地址:
下载完成:
安装Erlang
双击开始安装,选择安装位置,继续下一步,等待安装完成:
安装rabbitMQ:
双击运行程序,发现之前已安装过RabbitMQ 3.7.7 on Erlang 19.3
运行命令:
rabbitmq-plugins enable rabbitmq_management
报错:
C:\WINDOWS\system32>rabbitmq-plugins enable rabbitmq_management
escript: exception error: undefined function rabbitmqctl_escript:main/1
in function escript:run/2 (escript.erl, line 750)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1 (init.erl, line 1220)
in call from init:do_boot/3 (init.erl, line 910)C:\WINDOWS\system32>
可能是Erland和rabbitMQ版本不一致导致的报错:双击安装包,重新安装
选择安装位置:
安装完成:
运行rabbitMQ
开始菜单命令行执行:rabbitmq-plugins enable rabbitmq_management
访问管理界面:
查看端口占用:netstat -ano |findstr 15672
执行命令:
rabbitmqctl start_app
报错:
Error: unable to perform an operation on node 'rabbit@LAPTOP-U3I8CRDS'. Please see diagnostics information and suggestions below.
rabbitMQ启动问题
报错参考连接:
查看环境变量:
ERLANG_HOME
F:\Program Files\Erlang OTP
rabbitMQ变更了安装位置,需要同步更新环境变量的配置:
RABBITMQ_HOME
D:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.7
F:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.10
修改Path变量:
%ERLANG_HOME%\bin
%RABBITMQ_HOME%\sbin
执行操作:
#移除rabbitmq服务
rabbitmq-service remove
#安装rabbitmq服务
rabbitmq-service install
#启动rabbitmq服务
rabbitmq-server.bat
F:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.10\sbin>rabbitmqctl status
Error: unable to perform an operation on node 'rabbit@LAPTOP-U3I8CRDS'. Please see diagnostics information and suggestions below.Most common reasons for this are:
* Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
* CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
* Target node is not runningIn addition to the diagnostics info below:
* See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
* Consult server logs on node rabbit@LAPTOP-U3I8CRDS
* If target node is configured to use long node names, don't forget to use --longnames with CLI tools
将第三份文档复制到其他两个文件夹中,确保3份文件内容相同
重新启动,失败
启动问题解决
参考连接:
RabbitMq日常问题汇总-CSDN博客https://blog.csdn.net/weixin_40022980/article/details/132561292
C:\Users\###\AppData\Roaming\RabbitMQ\db
删除rabbit@LAPTOP-U3I8CRDS-mnesia文件夹内的全部内容,rabbitMQ启动成功
默认账号 : guest,默认密码:guest
输入 http:{ip}:15672
访问(15672 是访问网页控制台)
参考连接:
RabbitMQ安装教程(Windows/Linux都有)_rabbitmq下载-CSDN博客
RabbitMQ安装教程(超详细)_凡尘-追梦者的博客-CSDN博客
集成参考: