RabbitMQ安装成功后出现闪退,服务起不来!

RabbitMQ Server遇到的坑;暂未解决!

D:\RabbitMQ Server\rabbitmq_server-3.7.12\sbin>rabbitmqctl status
Status of node rabbit@YF-PC …
Error: unable to perform an operation on node ‘rabbit@YF-PC’. Please see diagnos
tics information and suggestions below.

Most common reasons for this are:

  • Target node is unreachable (e.g. due to hostname resolution, TCP connection o
    r 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 http://rabbitmq.com/document
    ation.html to learn more
  • Consult server logs on node rabbit@YF-PC
  • If target node is configured to use long node names, don’t forget to use --lo
    ngnames with CLI tools

DIAGNOSTICS

attempted to contact: [‘rabbit@YF-PC’]

rabbit@YF-PC:

  • connected to epmd (port 4369) on YF-PC

  • epmd reports node ‘rabbit’ uses port 25672 for inter-node and CLI tool traff
    ic

  • TCP connection succeeded but Erlang distribution failed

  • TCP connection to remote host has timed out. Is the Erlang distribution usin
    g TLS?

Current node details:

  • node name: ‘rabbitmqcli-8972-rabbit@YF-PC’
  • effective user’s home directory: C:\Users\YF
  • Erlang cookie hash: luzMZ9FtsJWk0wEUi+1YAA==

错误原因: * TCP connection to remote host has timed out. Is the Erlang distribution usin
g TLS? TCP连接超时,erlang发行版是否使用了TLS?

这个问题经过一天的研究,找到了问题的根源在于:
在这里插入图片描述
相信大家现在知道,RabbitMQ启动服务时闪退或者弹出本地服务启动停止1027的问题;问题的根源就在于上面;当RabbitMQ启动服务时,erl.exe弹出已停止工作;这种问题的解决方法就是:
在这里插入图片描述
在这里插入图片描述
这样就很尴尬了,数据保护时不能设置64位的执行文件!
于是在官网找到对应的32位软件;重新安装!
重新安装很顺利;服务能正常启动了!又出现了新的问题:RabbitMQ无法访问Web管理页面;
在这里插入图片描述
D:\RabbitMQ Server\rabbitmq_server-3.7.12\sbin>rabbitmqctl start_app
Starting node rabbit@YF-PC …
Error: unable to perform an operation on node ‘rabbit@YF-PC’. Please see diagnos
tics information and suggestions below.

Most common reasons for this are:

  • Target node is unreachable (e.g. due to hostname resolution, TCP connection o
    r 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 http://rabbitmq.com/document
    ation.html to learn more
  • Consult server logs on node rabbit@YF-PC
  • If target node is configured to use long node names, don’t forget to use --lo
    ngnames with CLI tools

DIAGNOSTICS

attempted to contact: [‘rabbit@YF-PC’]

rabbit@YF-PC:

  • connected to epmd (port 4369) on YF-PC

  • epmd reports node ‘rabbit’ uses port 25672 for inter-node and CLI tool traff
    ic

  • TCP connection succeeded but Erlang distribution failed

  • Authentication failed (rejected by the remote node), please check the Erlang
    cookie

Current node details:

  • node name: ‘rabbitmqcli-9088-rabbit@YF-PC’
  • effective user’s home directory: C:\Users\YF
  • Erlang cookie hash: luzMZ9FtsJWk0wEUi+1YAA==

问题出在了这里: * Authentication failed (rejected by the remote node), please check the Erlang cookie!这个问题是两个cookie要一致!
修改完cookie后,输入rabbitmq-service.bat stop;rabbitmq-service.bat start!在这里插入图片描述
重新打开管理页面;管理页面正常显示!
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
### 回答1: 可能是因为rabbitmq-server.bat文件中的某些命令或语句出现了错误,导致程序闪退。建议检查一下文件中的代码,看看是否有语法错误或其他问题。另外,也可以尝试重新安装或更新RabbitMQ,看看是否能够解决问题。 ### 回答2: rabbitmq-server.bat 闪退可能有多种原因,以下是几种常见的原因和相应的解决办法: 1. RabbitMQ 安装问题 如果你在安装 RabbitMQ 时遇到了问题,或者安装的版本不兼容你的操作系统,就有可能会导致 rabbitmq-server.bat 闪退。解决方法:请确认你下载的安装包是否与你的操作系统兼容,并且按照官方文档进行正确的安装。 2. 资源占用过高 rabbitmq-server.bat 闪退还可能是因为你的电脑占用了太多的资源,导致 RabbitMQ 无法正常运行。 解决方法:请关闭其他占用大量资源的程序或应用程序,尝试重新启动 RabbitMQ。 3. 配置文件问题 如果你的 RabbitMQ 配置文件(rabbitmq.config)出现了问题,就有可能导致 rabbitmq-server.bat 闪退。 解决方法:请检查你的配置文件是否正确,如果可能,请将其还原为默认值或使用一个正确的配置文件。 4. 端口冲突 如果你的电脑上有其他程序使用了 RabbitMQ 默认的端口(5672),就有可能导致 rabbitmq-server.bat 闪退。解决方法:请修改 RabbitMQ 的默认端口,并确保没有其他程序使用了这个端口。 总之,如果遇到 rabbitmq-server.bat 闪退问题,你可以首先排除以上几个常见问题,然后进一步分析和定位问题所在,尝试解决方案,如果有必要,可以寻求群友或官方技术支持的帮助。 ### 回答3: RabbitMQ是一个消息队列服务,由于它具有高度的可扩展性和灵活性,因此被广泛应用于分布式系统中。然而,有时运行RabbitMQ时可能遇到问题,如rabbitmq-server.bat闪退,这可能是由于以下原因引起的: 1. 系统环境问题:RabbitMQ需要在正确的操作系统下运行,如果您的系统不符合要求,就可能会出现闪退问题。要解决问题,确保您的系统与RabbitMQ的要求相匹配。 2. 配置问题:RabbitMQ需要正确的配置才能正确运行。如果您的配置文件存在问题,就可能会导致闪退问题。请仔细检查配置文件并进行必要的更改。 3. 受损的文件:RabbitMQ需要许多文件才能正确运行。如果其中一个文件受损或缺失,就可能会导致闪退问题。查找并更正受损文件。 4. 内存问题:RabbitMQ需要足够的内存来运行。如果您的系统没有足够的内存,则可能会导致闪退问题。考虑增加系统内存。 要解决RabbitMQ闪退问题,您可以尝试以下方法: 1. 重新安装RabbitMQ:确保使用正确的安装程序,并按照指示进行安装。 2. 检查配置文件:确保您的配置文件中没有任何错误,并与RabbitMQ要求相匹配。 3. 检查文件完整性:检查所有文件是否完整和正确,并进行必要的更改。 4. 关闭不必要的进程:关闭可能占用太多内存的其他进程。 5. 增加内存:如果您的系统没有足够的内存,请添加更多内存。 总体而言,解决RabbitMQ闪退问题需要仔细检查和排除所有可能引起问题的因素,并进行必要的更改。如果这些步骤无法解决问题,请考虑搜索其他解决方案或向RabbitMQ社区求助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值