corvax
corvax

Reputation: 1145

where is rabbitmq config file?

Documentation says that rabbitmq has config: /etc/rabbitmq/rabbitmq.conf but I have nothing there, but rabbitmq-server is running and consuming messages.

Where is my config file?

Upvotes: 17

Views: 54474

Answers (4)

Nitin Jain
Nitin Jain

Reputation: 165

The default location of RabbitMQ is

/etc/rabbitmq/rabbitmq.config 

The default installation of RabbitMQ doesn't create any configuration file, to override/set any specific configuration, we need to manually create the config file on the default configuration location. Please refer to the below rabbitMQ documentation related to the same.

Rabbit MQ Configuration

Rabbit MQ Configuration File Location and Environment Variables

Upvotes: 1

Dark Storm
Dark Storm

Reputation: 329

the default location of the config file is :

/etc/rabbitmq/rabbitmq.conf

but If you are running Rabbitmq in a docker container and you want to inspect all the files like the config files and the log files you can run the command

docker exec -it container_name bash 

then you run the following command :

rabbitmq-diagnostics status

you will find the real location of your config and log files and many more informations like the enabled plugins the memory and so on . also you can run the following command to get more informations like the consumer_prefetch the vhost and more

rabbitmq-diagnostics environment

Upvotes: 3

Gabriele Santomaggio
Gabriele Santomaggio

Reputation: 22760

It depends in which way you install RabbitMQ. The file usually is not present. If you need it, you have to create it.

For example if you use the package:

rabbitmq-server-mac-standalone-3.4.2.tar.gz

You can find the example file:

etc/rabbitmq/rabbitmq.config.example

and not the file.

Using RABBITMQ_CONFIG_FILE you can specify the rabbitmq.config file, to be sure you can check this variable.

Upvotes: 10

Josh Withee
Josh Withee

Reputation: 11396

On Windows:

RabbitMQ 3.7.0+

%APPDATA%\RabbitMQ\rabbitmq.conf

In RabbitMQ 3.7.0+, the main configuration file is rabbitmq.conf. An additional config file named advanced.config is also used for some advanced configuration settings; it uses the classic format.

Prior to 3.7.0:

%APPDATA%\RabbitMQ\rabbitmq.config

The configuration file is named rabbitmq.config and uses the Erlang term format (aka the "classic format" for RabbitMQ config files).

Example files:

Upvotes: 8

Related Questions