Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rabbitmq ignores configuration on Ubuntu 12

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.

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)

I tried setting RABBITMQ_CONFIG_FILE to point to that file, but that has no effect.

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.

like image 533
Scott Persinger Avatar asked Sep 25 '12 18:09

Scott Persinger


People also ask

How do I access RabbitMQ config file?

%APPDATA%\RabbitMQ\rabbitmq. config.

How do I set environment variables in RabbitMQ?

CONFIG_FILE=/etc/rabbitmq/testfile Copy In Windows, we should use the environment variables of the System Properties for modifying the environment variables of RabbitMQ. We can access to the Environment Variables by navigating to Settings | Control Panel | System Properties | Advanced | Environment Variables, where...

How do I change the default port for RabbitMQ?

config under /etc/rabbitmq directory on linux servers. Locate the rabbitmq_management tuple and change the port value (default is 12345 , change it to whatever you want). Be sure to uncomment or add the following content into /etc/rabbitmq/rabbitmq.


Video Answer


1 Answers

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.

Removing rabbitmq-env.conf at least allows the server to find rabbitmq.config. Good lord, what a mess.

like image 110
Scott Persinger Avatar answered Oct 14 '22 02:10

Scott Persinger