RabbitMQ configuration can be established in several ways:
By setting proper environment variables
By modifying the RabbitMQ configuration file
By defining runtime parameters and policies that can be modified at runtime
Environment variables can be set using a standard mechanism provided by your OS (for example, using the Control Panel in Windows or setting them permanently from the shell in Linux). However they can also be specified in the scripts used to run the RabbitMQ broker, such as the rabbitmq-server
utility, the rabbitmq-service
utility (used in Windows to start RabbitMQ as a Windows service), or rabbitmq-env.conf
(using in Unix-like operating systems by RabbitMQ to configure environment variables). At the beginning of the chapter we covered several such variables related to the location of the RabbitMQ database, logs, and configuration file. Here are several more you can configure: