mac os x el capitan 上的 rabbitmq-server 启动失败
rabbitmq-server boot failed on mac os x el capitan
第一次使用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
I 运行 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
被另一个进程使用
第一次使用rabbitmq
我通过
通过自制软件安装了 rabbitmqbrew 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
I 运行 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
被另一个进程使用