大网数据广告活动
服务器运维问答

RabbitMQ : configuration file not found

· 52CE 我爱测

My rabbitmq-env.conf looks like : root@encoder001 /etc/rabbitmq# cat ./rabbitmq-env.conf CONFIG_FILE=/etc/rabbitmq/rabbitmq.config when I restart , the log said : =INFO REPORT==== 16-Sep-2017::09:22:21 === node : rabbit@encoder00…

问题原文

原帖链接 · Bino Oetomo · CC BY-SA 3.0

My rabbitmq-env.conf looks like :

root@encoder001 /etc/rabbitmq# cat ./rabbitmq-env.conf 
CONFIG_FILE=/etc/rabbitmq/rabbitmq.config

when I restart , the log said :

=INFO REPORT==== 16-Sep-2017::09:22:21 ===
node           : rabbit@encoder001
home dir       : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/rabbitmq.config (not found)
cookie hash    : r6Fx293RnLUql2MqE0Wfqg==
log            : /var/log/rabbitmq/[email omitted]
sasl log       : /var/log/rabbitmq/[email omitted]
database dir   : /var/lib/rabbitmq/mnesia/rabbit@encoder001

In fact , the file is there .. and I'm prettysure it have proper access flags

root@encoder001 /etc/rabbitmq# ls -la |grep config
-rw-r--r--  1 root rabbitmq 22994 Sep 16 09:16 bunnies.config
-rw-r--r--  1 root rabbitmq 22994 Sep 16 08:58 rabbitmq.config

I also tried to change to 'CONFIG_FILE=/etc/rabbitmq/rabbitmq' , but the server can not start.

Kindly please give me any clue to fix it.

已采纳解答

原帖链接 · Itai Ganot · CC BY-SA 3.0

I've looked up on Google how to use the configuration file of RabbitMQ and found this official article.

According to that article, the directive should be prefixed with "RABBITMQ_":

RABBITMQ_CONFIG_FILE

Rather than

CONFIG_FILE

I'd try that and see how it works.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-09-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。