全新安装后无法配置RabbitMQ

时间:2019-02-15 15:39:44

标签: rabbitmq erlang

在RedHat 7.6上安装新的RabbitMQ之后,我遇到了一些问题 RabbitMQ版本是3.7.7.6。 Erlang版本是21.2.5-这两个兼容。

安装后,我启动RabbitMQ服务器。没问题。

一旦我要添加用户或配置任何内容,它将失败。例如:

[root@blabla ~]# rabbitmqctl status
(.....)
Only webadmin or rabbitmq can run rabbitmqctl

我尝试了一个,但现在我遇到了有关Erlang cookie的新问题:

[root@blabla ~]# sudo -u webadmin rabbitmqctl status
Status of node rabbit@blabla ...
Error: unable to perform an operation on node 'rabbit@blabla'. 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@blabla 

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

attempted to contact: ['rabbit@blabla']

rabbit@blabla:
  * connected to epmd (port 4369) on blabla
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  * TCP connection succeeded but Erlang distribution failed

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

我已经检查过Can't access rabbitmq mgmt,但所有答案都必须能够使用Rabbitmq-plugins或Rabbitmqtl,而我不能。

服务器已启动并且正在工作(systemctl启动rabbitmq),我可以在端口15672上远程访问它。显然,我无法使用来宾/来宾进行连接,但这是目前的预期行为。同样,这里没有群集设置,只是“简单”安装。

0 个答案:

没有答案
相关问题