在 Windows 中创建 Cookie 文件 RabbitMQ 失败 [英] Failed to Create Cookie file RabbitMQ in Windows
问题描述
我正在尝试运行以下命令
I am trying to run the following command
rabbitmq-plugins.bat enable rabbitmq_management
它给了我这样的错误:
11:36:55.464 [错误] 无法创建 cookie 文件 'h:/.erlang.cookie': enoent
11:36:55.464 [error] Failed to create cookie file 'h:/.erlang.cookie': enoent
我使用的是 Windows 7,Erlang 版本 R16B01 和 RabbitMQ-Server 版本 3.1.5
I am using windows 7, Erlang Version R16B01 and RabbitMQ-Server version 3.1.5
我正在使用我的工作电脑,我们的公司政策将 HOMEDRIVE 设置为 h: 并将 HOMEPATH 设置为/而且我认为他们不会让我改变这一点.
I am using my work PC and our Corporate policy sets the HOMEDRIVE to h: and HOMEPATH to / and i dont think they will let me change this.
我可以在 C:Windows 下看到 .erlang.cookie 文件.
I can see the .erlang.cookie file under C:Windows.
有人可以告诉我解决方法吗?
Could someone let me know of a workaround for this ?
提前致谢!
推荐答案
遇到了同样的 H: 问题.在执行 cli 之前,将主驱动器设置为 dos shell 中的某个目录.
Had the same H: problem. Set the home drive to some dir in the dos shell before executing the cli.
set HOMEDRIVE=C:/conf/rabbitmq :: Or your favorite dir
rabbitmq-plugins.bat enable rabbitmq_management
使用 C 盘中的文件夹.rabbitmq系统会将cookie文件写入那里.
Use a folder in C drive. The rabbitmq system will write the cookie file there.
这篇关于在 Windows 中创建 Cookie 文件 RabbitMQ 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!