Rabbitmq 忽略 Ubuntu 12 上的配置 [英] Rabbitmq ignores configuration on Ubuntu 12
问题描述
我在 Ubuntu 12 上从系统包安装了 rabbitmq-server
,无论我做什么,它似乎都忽略了任何配置文件.
I have rabbitmq-server
installed from the system package on Ubuntu 12, and no matter what I do it seems to ignore any configuration file.
网络上的所有内容都说服务器在寻找 /etc/rabbitmq/rabbitmq.conf
,但即使我创建了该文件,服务器也报告没有配置:
Everything on the web says the server looks for /etc/rabbitmq/rabbitmq.conf
, but even if I create that file the server reports no config:
> /usr/sbin/rabbitmq-server
node : rabbit@ip-10-160-149-160
app descriptor : /usr/lib/rabbitmq/lib/rabbitmq_server-2.7.1/sbin/../ebin/rabbit.app
home dir : /var/lib/rabbitmq
config file(s) : (none)
我尝试将 RABBITMQ_CONFIG_FILE
设置为指向该文件,但没有效果.
I tried setting RABBITMQ_CONFIG_FILE
to point to that file, but that has no effect.
Fwiw,我的 rabbitmq-env.conf
似乎想从 /etc/rabbitmq.conf.d
获取脚本,但这些似乎应该是 bash脚本,而不是 Erlang 配置.
Fwiw, my rabbitmq-env.conf
seems to want to source scripts from /etc/rabbitmq.conf.d
, but these appear to be expected to be bash scripts, not Erlang config.
推荐答案
我终于通过完全删除 /etc/rabbitmq/rabbitmq-env.conf
获得了一些运气.我还注意到 erlang 配置是 rabbitmq.config 而不是 'conf',尽管修复它仍然没有解决问题.
I finally had some luck by just removing /etc/rabbitmq/rabbitmq-env.conf
altogether. I also noticed that the erlang config is rabbitmq.config and not 'conf', although fixing that still didn't fix the problem.
删除rabbitmq-env.conf
至少可以让服务器找到rabbitmq.config
.天哪,真是一团糟.
Removing rabbitmq-env.conf
at least allows the server to find rabbitmq.config
. Good lord, what a mess.
这篇关于Rabbitmq 忽略 Ubuntu 12 上的配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!