「Spring常见错误」Rabbitmq 常见问题

目录

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

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

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

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

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

「Spring常见错误」Rabbitmq 常见问题

在执行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 命令。另外浏览器可能出现此网站无法提供安全连接问题,解决方法将浏览器缓存清理即可。

「Spring常见错误」Rabbitmq 常见问题

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

发表评论
留言与评论(共有 0 条评论) “”
   
验证码:

相关文章

推荐文章