Configuring RabbitMQ parameters

In this recipe, we are going to introduce the RabbitMQ parameters. By default, the broker doesn't create the configuration files because in most of the cases you don't need to change them. However, it's important to know how to configure the environment variables and the broker parameters.

How to do it…

In RabbitMQ, you can configure the environment variables and the server file configuration. With the environment variables, you can change parameters such as the server port or the node name. There are two ways to change these variables:

  1. Define the variables in your shell environment.
  2. Create a file rabbitmq-env.conf located in /etc/rabbitmq.

If, for example, you want to change the RabbitMQ node name, you have to do the ...

Get RabbitMQ Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.