更改Erlang中的默认“home”路径以解析RabbitMQ启动错误 [英] Change Default 'home' Path in Erlang to Resolve RabbitMQ Start Up Error

查看:618
本文介绍了更改Erlang中的默认“home”路径以解析RabbitMQ启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚来到了兔子和新郎,我遇到一个问题,我无法启动rabbitmq,因为.erlang.cookie的home位置已经更改。我运行命令

  init:get_argument(home)。 

其中返回

 code> {ok,[[H:\\]]} 

这是一个问题,因为这是一个网络驱动器,我并不总是可以访问。我需要能够将'home'目录更改为本地的目录。



当我运行

  rabbitmqctl status 

它给我以下错误:

  {error_logger,{{2013,7,5},{14,47,10}},无法创建Cookie文件h: /.erlang.cookie':enoent,[]} 

这又让我相信那里是家庭争论的问题。我需要能够将这个位置改成当地的地方。



版本:

  Erlang R16B01 32位
RabbitMQ 3.1.3
运行在Win7

我已经卸载并重新安装多次,希望能够解决这个问题。我正在寻找一种改变erlang中home位置的方法,所以rabbitmq可以正常启动。

解决方案

没有打扰安装的服务。我使用了rabbitmq-server.bat来启动服务,SET HOMEDRIVE = C:在文件的开头。我打算从父服务运行这个,以便我可以在服务器上安装。



earlang和rabbitMQ开发人员的最后注意事项;为自己的目的使用预先存在的环境变量是错误的。您应该创建自己的或更好的,但将这些东西放在一个配置文件中。告诉人们与他们的系统管理员交谈,改变HOMEDRIVE和APPDATA变量是至高无上的。


I'm new to rabbitmq and by association new to erlang. I'm running into a problem where I cannot start rabbitmq as the 'home' location for the .erlang.cookie has been changed. I've run the command

init:get_argument(home).

which returns

{ok,[["H:\\"]]}

this is an issue, as this is a network drive I do not always have access to. I need to be able to change the 'home' directory to something local.

when I run

rabbitmqctl status

it gives me the following error:

{error_logger,{{2013,7,5},{14,47,10}},"Failed to create cookie file 'h:/.erlang.cookie': enoent",[]}

which again leads me to believe that there is an issue with the home argument. I need to be able to change this location to something local.

Versions:

Erlang R16B01 32 bit
RabbitMQ 3.1.3
Running on Win7

I have uninstalled and reinstalled multiple times hoping to resolve this. I am looking for a way to change the 'home' location in erlang so rabbitmq can properly start.

解决方案

The solution I came up with was to not bother with the installed service. I used the rabbitmq-server.bat to start the service, SET HOMEDRIVE=C: at the start of the file. I'm planing to run this from a parent service so that I can install this on servers.

Final note to earlang and rabbitMQ developers; using pre-existing environment variables for you own purposes is just wrong. You should create your own, or better yet put this stuff in a configuration file. Telling people to talk to their system administrators to change the HOMEDRIVE and APPDATA variables is arrogant to say the least.

这篇关于更改Erlang中的默认“home”路径以解析RabbitMQ启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆