我在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发布于 2020-06-29 05:31:37
您的用户是否具有写入文件夹/var/run的权限?如果用户没有权限,您可以尝试从sudo开始。
您还可以在此链接中尝试其他方法:https://serverfault.com/questions/159334/what-permissions-are-needed-to-write-a-pid-file-in-var-run/159349#159349
https://stackoverflow.com/questions/62546870
复制相似问题