无法在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
I我正在使用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:问题。
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屋!