无法在centos7上启动Rabbitmq服务器

时间:2020-06-24 02:56:45

标签: rabbitmq

我在centos7上安装了RabbitMQ,但是启动服务器时收到警告:

Warning: PID file not written; -detached was passed.

然后我检查获得此消息的Rabbitmq服务器的状态

centos Error: unable to perform an operation on node 'rabbit@ecs-8767'. 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@ecs-8767
* If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS

1 个答案:

答案 0 :(得分:1)

您的用户是否具有写文件夹/var/run的权限?如果用户没有权限,则可以尝试从sudo开始。

您还可以在此链接中尝试其他方法: https://serverfault.com/questions/159334/what-permissions-are-needed-to-write-a-pid-file-in-var-run/159349#159349