RabbitMQ数据库文件 [英] RabbitMQ database files
问题描述
我正在运行RabbitMQ V.2.0.0.在Linux机器上.mnesia base是当前默认设置,但是Rabbit在该目录中创建目录,例如.rabbit@ip-123.1.1.123.
I'm running RabbitMQ V.2.0.0. on a Linux machine. The mnesia base is current the default, but the within that directory Rabbit creates directories, eg. rabbit@ip-123.1.1.123.
目录名称中的ip基于计算机的inet addr.该目录包含有关用户,交易所,虚拟主机的信息(我认为).
The ip in the directory name is based on the inet addr of the machine. This directories hold information about user, exchanges, vhost (I think).
我的问题是,如何使用ip修复/配置这些目录名称,使其不基于ip?
My question is, how can I fix/config these directory names with ip to be not based on ip?
推荐答案
似乎您可以编辑脚本文件(rabbitmq-server,rabbitmq-mulit和rabbitmqcti).在这些脚本的顶部是一个主机名变量.
It seems you can edit the scripts files (rabbitmq-server, rabbitmq-mulit and rabbitmqcti). In these scripts at the top is a hostname variable.
我将主机名设置为localhost并重新启动.
I set the hostname to localhost and restarted.
这不是最好的,但足以满足我的要求.主机名必须是正确的地址,不能是任意的.
This is not the best, but good enough for my requirements. The hostname must be a proper address, it cannot be something arbitrary.
这篇关于RabbitMQ数据库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!