运行rabbitmq-server时出现路径错误
Posted
技术标签:
【中文标题】运行rabbitmq-server时出现路径错误【英文标题】:Path error while running rabbitmq-server 【发布时间】:2016-05-22 11:31:16 【问题描述】: 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
请帮忙
【问题讨论】:
【参考方案1】:在 Windows 操作系统中执行更多步骤:
Rabbitmq manual for Windows
【讨论】:
谢谢@do01;我的问题是我需要一个 RABBITMQ_SERVER 环境变量,然后我需要一个指向 %RABBITMQ_SERVER%\sbin 目录的 PATH 指针。【参考方案2】:对于窗户
-
打开命令提示符
将目录更改为
C:\Program Files\RabbitMQ Server\rabbitmq_server-
3.7.12\sbin
键入命令rabbitmq-plugins enable rabbitmq_management
【讨论】:
以上是关于运行rabbitmq-server时出现路径错误的主要内容,如果未能解决你的问题,请参考以下文章
尝试运行 Google Speech Recognition java 示例时出现“需要 query.json 的路径”错误