windows - 无法在 Windows 上启动 rabbitmq-management 插件

标签 windows rabbitmq

我是 RabbitMQ 的初学者,我在启用管理插件时遇到了一些问题。 rabbitmq 服务器已启动并正在运行,但是当我尝试启用该插件时,我在 Windows 命令提示符中得到了这个:

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.1.5\sbin>rabbitmq-plugi
ns.bat enable rabbitmq_management
{error_logger,{{2013,9,6},{12,46,51}},"Failed to create cookie file 'u:/.erlang.
cookie': enoent",[]}
{error_logger,{{2013,9,6},{12,46,51}},crash_report,[[{initial_call,{auth,init,['
Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{"Failed t
o create cookie file 'u:/.erlang.cookie': enoent",[{auth,init_cookie,0,[{file,"a
uth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,
init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{fi
le,"proc_lib.erl"},{line,239}]}]},[{gen_server,init_it,6,[{file,"gen_server.erl"
},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[<0.17.0>]},{di
ctionary,[]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},{
reductions,964}],[]]}
{error_logger,{{2013,9,6},{12,46,51}},supervisor_report,[{supervisor,{local,net_
sup}},{errorContext,start_error},{reason,{"Failed to create cookie file 'u:/.erl
ang.cookie': enoent",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,
init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.
erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}
]}]}},{offender,[{pid,undefined},{name,auth},{mfargs,{auth,start_link,[]}},{rest
art_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2013,9,6},{12,46,51}},supervisor_report,[{supervisor,{local,kern
el_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,aut
h,{"Failed to create cookie file 'u:/.erlang.cookie': enoent",[{auth,init_cookie
,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_
apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}},{offender,[{pid,undefined},{nam
e,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{s
hutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2013,9,6},{12,46,51}},crash_report,[[{initial_call,{application_
master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.
9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,n
et_sup,{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file 'u:/
.erlang.cookie': enoent",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{a
uth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_ser
ver.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,
239}]}]}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"app
lication_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.
erl"},{line,239}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]
},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{h
eap_size,610},{stack_size,27},{reductions,150}],[]]}
{error_logger,{{2013,9,6},{12,46,51}},std_info,[{application,kernel},{exited,{{s
hutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"F
ailed to create cookie file 'u:/.erlang.cookie': enoent",[{auth,init_cookie,0,[{
file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_
server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply
,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}}},{type,
permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kern
el,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,au
th,{\"Failed to create cookie file 'u:/.erlang.cookie': enoent\",[{auth,init_coo
kie,0,[{file,\"auth.erl\"},{line,285}]},{auth,init,1,[{file,\"auth.erl\"},{line,
139}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},{proc_lib,i
nit_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}}}}},{kernel,start,[norm
al,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kerne
l,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,aut
h,{"Failed to create cookie file 'u:/.

尝试使用 rabbitmq-plugins.bat 列表列出插件时,我遇到了同样的错误。

它发生在三台完全不同的机器上,分别运行 Windows 7(两台)和 Windows Servver 2008 R2(一台)。

此外,我正在使用 rabbitmq-server-3.1.5 和 Erlang R16B01。

最佳答案

只是它显示为答案:来自 this link在 OP 的评论中。

The problem was that %HOMEDRIVE% was pointing to U: instead of C:

要解析并安装管理插件,只需重新指向HOMEDRIVE

SET HOMEDRIVE=C:
rabbitmq-plugins.bat enable rabbitmq_management
rabbitmq-service.bat stop
rabbitmq-service.bat install
rabbitmq-service.bat start

关于windows - 无法在 Windows 上启动 rabbitmq-management 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18661791/

相关文章:

c - 如何解决 Windows 中的 libatomic 问题?

connection - RabbitMQ客户端无法连接到远程RabbitMQ服务器

rabbitmq - 有没有一种方法可以使用 RabbitMQ 以 100% 的交付保证来传输数据?

python - 如何使用 Django 检索尚未开始的 Celery 任务?

java - RPC 模式问题

c# - RabbitMQ 可以告诉我一条消息已传递了多少次吗?

无法使用 ReadConsoleInput 从控制台读取(!@#$...和大写字母)

c# - 更改应用程序池的标识时出错

c# - ffmpeg 输出管道到命名的 Windows 管道

c++ - 在调用 recv() 之前检查错误