运行rabbitmq-server时出现路径错误

时间:2016-02-11 15:36:19

标签: windows erlang rabbitmq

   C:\rabbitmq-server-3.6.0\scripts>rabbitmq-plugins enable rabbitmq_management
'realpath' is not recognized as an internal or external command,
operable program or batch file.
init terminating in do_boot ()
'realpath' is not recognized as an internal or external command,
operable program or batch file.
init terminating in do_boot ()
'realpath' is not recognized as an internal or external command,
operable program or batch file.
{"init terminating in do_boot",{undef,[{rabbit_plugins_main,start,[],[]},{init,start_it,1,[{file,"init.erl"},{line,1053}]},{init,start_em,1[{file,"init.erl"},{line,1034}]}]}}
init terminating in do_boot ()

C:\rabbitmq-server-3.6.0\scripts>rabbitmq-server

realpath' is not recognized as an internal or external command,
operable program or batch file.
{"init terminating in do_boot",{undef,[{rabbit_prelaunch,start,[],[]},{init,start_it,1,[{file,"init.erl"},{line,1053}]},{init,start_em,1[{file,"init.erl"},{line,1034}]}]}}
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()

我使用的是erlang 7.0版和rabbitmq 3.6.0

我已将环境变量设置如下

ERLANG_HOME - C:\Program Files\erl7.0
RABBITMQ_SERVER - C:\rabbitmq-server-3.6.0

请帮助

2 个答案:

答案 0 :(得分:4)

在Windows操作系统中执行更多步骤:

Rabbitmq manual for Windows

答案 1 :(得分:0)

对于Windows

  1. 打开命令提示符
  2. 将目录更改为C:\Program Files\RabbitMQ Server\rabbitmq_server- 3.7.12\sbin
  3. 键入命令rabbitmq-plugins enable rabbitmq_management