日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

rabbitmqctl status报错

發(fā)布時(shí)間:2025/4/5 编程问答 47 豆豆
生活随笔 收集整理的這篇文章主要介紹了 rabbitmqctl status报错 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

今天第二次部署rabbitmq,第一次部署之后早都沒有印象了,哎,好無(wú)奈,不過依然對(duì)rabbitmq不懂,但是先部署好吧。流程這里先不寫了,先記錄一個(gè)問題吧,看見網(wǎng)上大家的這個(gè)問題很少見,給需要的小伙伴一個(gè)參考吧,可能大家不寫是覺得問題簡(jiǎn)單所以不屑一顧了,但是我這個(gè)菜鳥渣渣還得記錄一下。安裝好之后啟動(dòng)了rabbitmq,查看狀態(tài)報(bào)錯(cuò)如下:
[root@nginx ~]# rabbitmqctl status
Status of node rabbit@nginx ...
Error: unable to perform an operation on node 'rabbit@nginx'. 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 http://rabbitmq.com/documentation.html to learn more
  • Consult server logs on node rabbit@nginx

DIAGNOSTICS

attempted to contact: [rabbit@nginx]

rabbit@nginx:

  • connected to epmd (port 4369) on nginx
  • epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  • can't establish TCP connection to the target node, reason: timeout (timed out)
  • suggestion: check if host 'nginx' resolves, is reachable and ports 25672, 4369 are not blocked by firewall

Current node details:

  • node name: rabbitmqcli55@nginx
  • effective user's home directory: /root
  • Erlang cookie hash: 5xhHO3pWlZKxcLJlQY+zUA==

原因:
自己修改了主機(jī)名,所以需要在hosts文件中做解析。

解決辦法:
[root@nginx ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 nginx
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

再查看狀態(tài),好了。
[root@nginx ~]# rabbitmqctl status
Status of node rabbit@nginx ...
[{pid,12301},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.7.7"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.7"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.7"},
{rabbit,"RabbitMQ","3.7.7"},
{amqp_client,"RabbitMQ AMQP Client","3.7.7"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.7.7"},
{recon,"Diagnostic tools for production use","2.3.2"},
.
.
.
.
安裝過程見word文檔,同時(shí)有安裝腳本。此留作記錄。201808082209

轉(zhuǎn)載于:https://blog.51cto.com/6010131/2165678

總結(jié)

以上是生活随笔為你收集整理的rabbitmqctl status报错的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。