【问题标题】:rabbitmq-server boot failed on mac os x el capitan在 mac os x el capitan 上,rabbitmq-server 启动失败
【发布时间】:2017-03-20 04:00:05
【问题描述】:

这是我第一次使用rabbitmq。

我通过自制软件安装了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,但这并没有解决问题。

感谢您的帮助

【问题讨论】:

    标签: macos rabbitmq osx-elcapitan


    【解决方案1】:

    eaddrinuse 是 Erlang 错误,你有另一个进程使用的端口 1883

    【讨论】:

    • 好的,谢谢。有使用该端口的 mosquitto 服务器。我通过停止 mosquitto 服务器并重新启动 rabbitmq 解决了这个问题
    猜你喜欢
    • 2023-03-29
    • 2016-04-10
    • 2016-01-17
    • 1970-01-01
    • 1970-01-01
    • 2014-12-15
    • 1970-01-01
    • 1970-01-01
    • 2015-12-29
    相关资源
    最近更新 更多