我已经安装了rabbitmql,并且正在尝试运行它,但是它没有启动,而是抛出了如下所示的错误。我尝试应用以下答案中的建议,但是它们没有帮助:
RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
## ## Licensed under the MPL. See http://www.rabbitmq.com/
## ##
########## Logs: /var/log/rabbitmq/rabbit@vishruth.log
###### ## /var/log/rabbitmq/rabbit@vishruth-sasl.log
##########
Starting broker...
BOOT FAILED
===========
Error description:
{could_not_start,rabbit,
{{case_clause,
{error,
{{shutdown,
{failed_to_start_child,
{ranch_listener_sup,
{acceptor,{0,0,0,0,0,0,0,0},5672}},
{shutdown,
{failed_to_start_child,ranch_acceptors_sup,
{listen_error,
{acceptor,{0,0,0,0,0,0,0,0},5672},
eaddrinuse}}}}},
{child,undefined,'rabbit_tcp_listener_sup_:::5672',
{tcp_listener_sup,start_link,
[{0,0,0,0,0,0,0,0},
5672,ranch_tcp,
[inet6,
{backlog,128},
{nodelay,true},
{linger,{true,0}},
{exit_on_close,false}],
rabbit_connection_sup,[],
{rabbit_networking,tcp_listener_started,
[amqp,
[{backlog,128},
{nodelay,true},
{linger,{true,0}},
{exit_on_close,false}]]},
{rabbit_networking,tcp_listener_stopped,
[amqp,
[{backlog,128},
{nodelay,true},
{linger,{true,0}},
{exit_on_close,false}]]},
10,"TCP Listener"]},
transient,infinity,supervisor,
[tcp_listener_sup]}}}},
[{rabbit_networking,start_listener0,5,
[{file,"src/rabbit_networking.erl"},{line,225}]},
{rabbit_networking,'-start_listener/5-lc$^0/1-0-',5,
[{file,"src/rabbit_networking.erl"},{line,213}]},
{rabbit_networking,start_listener,5,
[{file,"src/rabbit_networking.erl"},{line,213}]},
{rabbit_networking,'-boot_tcp/1-lc$^0/1-0-',2,
[{file,"src/rabbit_networking.erl"},{line,126}]},
{rabbit_networking,boot_tcp,1,
[{file,"src/rabbit_networking.erl"},{line,126}]},
{rabbit_networking,boot,0,
[{file,"src/rabbit_networking.erl"},{line,121}]},
{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,
[{file,"src/rabbit_boot_steps.erl"},{line,49}]},
{rabbit_boot_steps,run_step,2,
[{file,"src/rabbit_boot_steps.erl"},{line,49}]}]}}
Log files (may contain more information):
/var/log/rabbitmq/rabbit@vishruth.log
/var/log/rabbitmq/rabbit@vishruth-sasl.log
{"init terminating in do_boot",{could_not_start,rabbit,{{case_clause,{error,{{shutdown,{failed_to_start_child,{ranch_listener_sup,{acceptor,{0,0,0,0,0,0,0,0},5672}},{shutdown,{failed_to_start_child,ranch_acceptors_sup,{listen_error,{acceptor,{0,0,0,0,0,0,0,0},5672},eaddrinuse}}}}},{child,undefined,'rabbit_tcp_listener_sup_:::5672',{tcp_listener_sup,start_link,[{0,0,0,0,0,0,0,0},5672,ranch_tcp,[inet6,{backlog,128},{nodelay,true},{linger,{true,0}},{exit_on_close,false}],rabbit_connection_sup,[],{rabbit_networking,tcp_listener_started,[amqp,[{backlog,128},{nodelay,true},{linger,{true,0}},{exit_on_close,false}]]},{rabbit_networking,tcp_listener_stopped,[amqp,[{backlog,128},{nodelay,true},{linger,{true,0}},{exit_on_close,false}]]},10,"TCP Listener"]},transient,infinity,supervisor,[tcp_listener_sup]}}}},[{rabbit_networking,start_listener0,5,[{file,"src/rabbit_networking.erl"},{line,225}]},{rabbit_networking,'-start_listener/5-lc$^0/1-0-',5,[{file,"src/rabbit_networking.erl"},{line,213}]},{rabbit_networking,start_listener,5,[{file,"src/rabbit_networking.erl"},{line,213}]},{rabbit_networking,'-boot_tcp/1-lc$^0/1-0-',2,[{file,"src/rabbit_networking.erl"},{line,126}]},{rabbit_networking,boot_tcp,1,[{file,"src/rabbit_networking.erl"},{line,126}]},{rabbit_networking,boot,0,[{file,"src/rabbit_networking.erl"},{line,121}]},{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,run_step,2,[{file,"src/rabbit_boot_steps.erl"},{line,49}]}]}}}
init terminating in do_boot ({could_not_start,rabbit,{{case_clause,{error,{_}}},[{rabbit_networking,start_listener0,5,[_]},{rabbit_networking,-start_listener/5-lc$^0/1-0-,5,[_]},{rabbit_networking,sta
1条答案
按热度按时间pwuypxnk1#
您的问题是RabbitMQ无法在已配置的ipv6接口中侦听:
{0,0,0,0,0,0,0,0},5672},eaddrinuse