我正在尝试在Windows 7 64位中安装带有Erlang的RabbitMQ。我正在安装:
R16B01 Windows 64 Bit Binary File
rabbitmq-server-3.1.5.exe
一步一步地遵循本教程
http://www.youtube.com/watch?v=x9wwZAuub1w
但是在运行命令时:“rabbitmq-plugins enable rabbitmq_management”
此错误显示:
{error_logger,{{2013,9,12},{13,23,53}},"Failed to create cookie file 'z:/.erlang
.cookie': enoent",[]}
{error_logger,{{2013,9,12},{13,23,53}},crash_report,[[{initial_call,{auth,init,[
'Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{"Failed
to create cookie file 'z:/.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,[{f
ile,"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>]},{d
ictionary,[]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},
{reductions,951}],[]]}
{error_logger,{{2013,9,12},{13,23,53}},supervisor_report,[{supervisor,{local,net
_sup}},{errorContext,start_error},{reason,{"Failed to create cookie file 'z:/.er
lang.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,[]}},{res
tart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2013,9,12},{13,23,53}},supervisor_report,[{supervisor,{local,ker
nel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,au
th,{"Failed to create cookie file 'z:/.erlang.cookie': enoent",[{auth,init_cooki
e,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},{na
me,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{
shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2013,9,12},{13,23,53}},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,
net_sup,{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file 'z:
/.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_se
rver.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line
,239}]}]}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"ap
plication_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},{
heap_size,610},{stack_size,27},{reductions,150}],[]]}
{error_logger,{{2013,9,12},{13,23,53}},std_info,[{application,kernel},{exited,{{
shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"
Failed to create cookie file 'z:/.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_appl
y,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 'z:/.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 'z:/.
为什么要尝试到达Z:/目录?一直在配置文件中搜索,但我找不到它。
在谷歌搜索但没有答案对我有效。
我也设置了环境变量:ERLANG_HOME和RABBITMQ_SERVER,其中:
ERLANG_HOME: C:\Program Files\erl5.10.2
RABBITMQ_SERVER: C:\rabbitmq_server-3.1.5
有没有人遇到过这个问题?你是怎么解决的?
感谢。
答案 0 :(得分:5)
根据this mailing list thread,您需要设置HOMEDRIVE
和HOMEPATH
环境变量,使其在连接时指向您的主目录。由于某种原因,大概HOMEDRIVE
被设置为z:
。