RabbitMQ无法初始化Erlang分发

nqwrtyyt  于 2022-12-08  发布在  Erlang
关注(0)|答案(3)|浏览(190)

I have installed RabbitMQ but when I try to use rabbitmqctl status in cmd I have next result:

D:\RabbitMQ\rabbitmq_server-3.6.2\sbin>rabbitmqctl status
Error: Failed to initialize erlang distribution: {{shutdown, {failed_to_start_child, net_kernel, {'EXIT',nodistribution}}}, {child,undefined, net_sup_dynamic, {erl_distribution, start_link, [['rabbitmq-cli-70', shortnames]]}, permanent,1000,supervisor, [erl_distribution]}}.

Folder with Erlang : D:\erl7.3
I have following environment variables :
ERLANG_HOME : D:\erl7.3
ERLANG_SERVICE_MANAGER_PATH : D:\erl7.3\erts-7.3\bin
How can I fix this to RabbitMQ install correctly?
Additionally: I've done all steps from this tutorial programmershandbook.wordpress.com/2015/03/22/rabbitmq-setup but when I try work with cmd i have the same error.
And erl_crush.dump have following first strings:

=erl_crash_dump:0.3
Fri May 20 12:29:12 2016
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k
System version: Erlang/OTP 18 [erts-7.3] [64-bit] [smp:4:4] [async-threads:10]
Compiled: Mon Mar 14 21:51:02 2016
Taints: 
Atoms: 4811
Calling Thread: scheduler:3

It can be connected with using Windows 10 or something else?

gcxthw6b

gcxthw6b1#

使用sudo运行命令对我很有效

» sudo rabbitmq-plugins enable rabbitmq_management                                                  
The following plugins have been enabled:
  mochiweb
  webmachine
  rabbitmq_web_dispatch
  amqp_client
  rabbitmq_management_agent
  rabbitmq_management
holgip5t

holgip5t2#

我使用sudo权限运行同一命令解决了此错误

ikfrs5lh

ikfrs5lh3#

这是一个非常抽象的错误,很多错误的配置都可能导致这个错误。您是否尝试过将NODE_NAME也设置为类似bunny@localhost的内容?

相关问题