macos - 在 Mac OS X el Capitan 上,rabbitmq-server 启动失败

标签 macos rabbitmq osx-elcapitan

这是我第一次使用rabbitmq。

我通过homebrew安装了rabbitmq

brew update
brew install rabbitmq

然后我将路径插入到我的 .bash_profile

PATH=$PATH:/usr/local/sbin

我重新启动终端并输入

rabbitmq-server

启动服务器但出现以下错误

              RabbitMQ 3.6.6. Copyright (C) 2007-2016 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
  ######  ##        /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log
  ##########
              Starting broker...


BOOT FAILED
===========

Error description:
   {could_not_start,rabbitmq_mqtt,
       {{shutdown,
            {failed_to_start_child,'rabbit_mqtt_listener_sup_:::1883',
                {shutdown,
                    {failed_to_start_child,
                        {ranch_listener_sup,{acceptor,{0,0,0,0,0,0,0,0},1883}},
                        {shutdown,
                            {failed_to_start_child,ranch_acceptors_sup,
                                {listen_error,
                                    {acceptor,{0,0,0,0,0,0,0,0},1883},
                                    eaddrinuse}}}}}}},
        {rabbit_mqtt,start,[normal,[]]}}}

Log files (may contain more information):
   /usr/local/var/log/rabbitmq/rabbit@localhost.log
   /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log

{"init terminating in do_boot",{could_not_start,rabbitmq_mqtt,{{shutdown,{failed_to_start_child,'rabbit_mqtt_listener_sup_:::1883',{shutdown,{failed_to_start_child,{ranch_listener_sup,{acceptor,{0,0,0,0,0,0,0,0},1883}},{shutdown,{failed_to_start_child,ranch_acceptors_sup,{listen_error,{acceptor,{0,0,0,0,0,0,0,0},1883},eaddrinuse}}}}}}},{rabbit_mqtt,start,[normal,[]]}}}}
init terminating in do_boot ()

Crash dump is being written to: erl_crash.dump...done

我运行rabbitmqctl status,下面是结果

Status of node rabbit@localhost ...
Error: unable to connect to node rabbit@localhost: nodedown

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

attempted to contact: [rabbit@localhost]

rabbit@localhost:
  * connected to epmd (port 4369) on localhost
  * epmd reports: node 'rabbit' not running at all
                  other nodes on localhost: ['rabbitmq-cli-77']
  * suggestion: start the node

current node details: 
- node name: 'rabbitmq-cli-77@Ling-Air'
- home dir: /Users/Ling
- cookie hash: 0YMYFZ/TBrgNjOy7lBAw4A==

我该怎么办?我已经重新启动了计算机并重新安装了rabbitmq,但这并没有解决问题。

感谢您的帮助

最佳答案

eaddrinuse 是一个 Erlang 错误,您的端口 1883 已被另一个进程使用

关于macos - 在 Mac OS X el Capitan 上,rabbitmq-server 启动失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42895634/

相关文章:

objective-c - 有没有办法模仿Lion的Launchpad?

ruby-on-rails - 如何在Rails中使用RabbitMQ实现RPC?

php - 使用 Homebrew 软件在 El Capitan 上安装 xdebug

ios - Xcode - 如何修复 'NSUnknownKeyException' ,原因 : … this class is not key value coding-compliant for the key X"error?

macos - 如何 ls --ignore on osx

c++ - osx/win7/linux上不同的c++调用转换

python - Amazon ec2 中 pika-rabbitmq 的良好心跳间隔

python - 允许 RabbitMQ 和 Pika 保持连接始终打开

java - 在 JFrame 上启用 Split View

keychain - Mac OS X El Capitan Smart Card Services PKCS#11 Tokend 编译安装