【Spring常见错误】Rabbitmq 常见问题

🙊🙊作者主页:🔗求不脱发的博客

📔📔 精选专栏:🔗Spring

📋📋 精彩摘要rabbitmq是实现了高级消息队列协议(AMQP)的开源消息代理软件(亦称面向消息的中间件)。在安装使用过程中难免会遇到一些问题,这里将介绍几种常见问题以及解决方案提供参考。

💞💞觉得文章还不错的话欢迎大家点赞👍➕收藏⭐️➕评论💬支持博主🤞

目录

问题1:发生系统错误 5。 拒绝访问。

问题2:发生系统错误 1067。进程意外终止。

问题3:Error: unable to perform an operation on node 'rabbit@xxx'.

问题4:localhost:15672 web端打不开


 问题1:发生系统错误 5。 拒绝访问。

 

在执行rabbit命令时,提示这种错误一般为命令行下的权限不足。

需以管理员身份运行cmd,在重新切换到目标目录下执行命令即可。


问题2:发生系统错误 1067。进程意外终止。

这种情况下可能的错误主要有一下几种:

  1. 安装的目录名中含有 空格 等不合法字符。
  2. 电脑的设备名称中含有中文字符。
  3. 由于rabbitmq运行依赖于erlang运行环境,并且版本匹配。

由以上情况下对应的修改一下即可,erlang可在cmd命令行下执行erl命令检查是否安装成功。

如果以上情况均无或者均修改后仍然无效,可在cmd  rabbitmq目录下运行rabbitmq-service install 重装命令。


问题3:Error: unable to perform an operation on node 'rabbit@xxx'.

Error: unable to perform an operation on node 'rabbit@Lee'. 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 https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node rabbit@wangshuo
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: [rabbit@wangshuo]

rabbit@wangshuo:
  * connected to epmd (port 4369) on wangshuo
  * epmd reports: node 'rabbit' not running at all
                  no other nodes on wangshuo
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-19760-rabbit@wangshuo'
 * effective user's home directory: C:\Users\13343
 * Erlang cookie hash: y1wQRjvcOXX+x5pqGKKOWw==

这种情况下较为复杂,主要分为以下几种:

    1.Erlang 的 cookie 出现问题,Erlang 会生成两个 cookie 文件:

C:\Windows\System32\config\systemprofile\.erlang.cookie  
C:\用户\用户名\.erlang.cookie。

        将其中任意一个文件替换另一个文件即可。

    2.相关端口被占用,具体查看日志。

    3.登录账号权限问题,具体可查看https://blog.csdn.net/seven_coder/article/details/79091934


问题4:localhost:15672 web端打不开 

主要问题在于相关插件未开启。

cmd rabbitmq目录下执行rabbitmq-plugins.bat list 命令查看相关插件

[  ] rabbitmq_amqp1_0                  3.9.13
[  ] rabbitmq_auth_backend_cache       3.9.13
[  ] rabbitmq_auth_backend_http        3.9.13
[  ] rabbitmq_auth_backend_ldap        3.9.13
[  ] rabbitmq_auth_backend_oauth2      3.9.13
[  ] rabbitmq_auth_mechanism_ssl       3.9.13
[  ] rabbitmq_consistent_hash_exchange 3.9.13
[  ] rabbitmq_event_exchange           3.9.13
[  ] rabbitmq_federation               3.9.13
[  ] rabbitmq_federation_management    3.9.13
[  ] rabbitmq_jms_topic_exchange       3.9.13
[E*] rabbitmq_management               3.9.13
[e*] rabbitmq_management_agent         3.9.13
[  ] rabbitmq_mqtt                     3.9.13
[  ] rabbitmq_peer_discovery_aws       3.9.13
[  ] rabbitmq_peer_discovery_common    3.9.13
[  ] rabbitmq_peer_discovery_consul    3.9.13
[  ] rabbitmq_peer_discovery_etcd      3.9.13
[  ] rabbitmq_peer_discovery_k8s       3.9.13
[  ] rabbitmq_prometheus               3.9.13
[  ] rabbitmq_random_exchange          3.9.13
[  ] rabbitmq_recent_history_exchange  3.9.13
[  ] rabbitmq_sharding                 3.9.13
[  ] rabbitmq_shovel                   3.9.13
[  ] rabbitmq_shovel_management        3.9.13
[  ] rabbitmq_stomp                    3.9.13
[  ] rabbitmq_stream                   3.9.13
[  ] rabbitmq_stream_management        3.9.13
[  ] rabbitmq_top                      3.9.13
[  ] rabbitmq_tracing                  3.9.13
[  ] rabbitmq_trust_store              3.9.13
[e*] rabbitmq_web_dispatch             3.9.13
[  ] rabbitmq_web_mqtt                 3.9.13
[  ] rabbitmq_web_mqtt_examples        3.9.13
[  ] rabbitmq_web_stomp                3.9.13
[  ] rabbitmq_web_stomp_examples       3.9.13

如上代码所示为正常情况,否则执行rabbitmq-plugins.bat enable rabbitmq_management 命令。另外浏览器可能出现此网站无法提供安全连接问题,解决方法将浏览器缓存清理即可。

 以上方法提供参考,具体情况具体对待。如有疑问或错误欢迎指正。

  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

求不脱发

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值