记录下Windows 10下安装RabbitMQ遇到的坑(小白踩坑记)

1,448 阅读2分钟

废话不多说,直接贴遇到的问题

问题一 安装完erlang 和 RabbitMQ之后访问不了localhost:15672/

** 原因是erlang 和 rabbit mq 的版本不兼容,于是把原来的卸载了找了兼容的版本重新安装 **

问题二 安装完兼容版本的erlang和rabbit mq之后还是访问不了

使用rabbitmqctl status命令提示错误如下:

Error: unable to perform an operation on node 'rabbit@C001741998'. 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 running In addition to the diagnostics info below:

See the CLI, clustering and networking guides on rabbitmq.com/documentati… to learn more Consult server logs on node rabbit@C001741998

** 一顿面向搜索引擎操作之后,给出的解释是C:\Users{UserName}.erlang.cookie 和 C:\WINDOWS\System32\config\systemprofile.erlang.cookie不一致了,解决方案是将C:\Users{UserName}.erlang.cookie删除,然后将C:\WINDOWS\System32\config\systemprofile.erlang.cookie复制到上一个目录下。 结果发现还是不行,这时候我懵逼了。 一顿捣鼓之后终于在RabbitMQ 服务发现了端倪:

上图红色方框圈出来的路径出了问题,RabbitMQ服务依赖的erlang原来是9.3版本的,但是这个版本我已经卸载了,所以它找不到这个路径,服务直接挂掉,起不来,解决办法就是把RabbitMQ服务注册的可执行文件路径给改为现在正确的路径,这个方框里面的erl 10.5版本的是我修改完之后的,改完之后就OK了。 ps:修改RabbitMq服务注册可执行文件路径的方法: 1、
2、ctrl + f 搜索服务名,也就是RabbitMQ,然后找到RabbitMQ的服务注册信息; 3、
4、刷新重启RabbitMQ服务,搞定收工