无法在centos7上启动rabbitmq服务器

无法在centos7上启动rabbitmq服务器,rabbitmq,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 bel

我在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

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

您也可以在此链接中尝试其他方法:

检查端口
5672
是否空闲。如果您同时启动
管理UI
,请检查端口
15672
是否也可用。端口5672可用,我尝试命令“rabbitmq服务器启动”,它显示“未能写入pid文件”