Creating Windows environment variables for RabbitMQ

NCR recommends changing the default location for the RabbitMQ server’s database, log, and configuration files. Two Windows environment variables will be created. The first variable, RABBITMQ_BASE, specifies the recommended location for the RabbitMQ server database and log files. During the RabbitMQ installation, the second variable, RABBITMQ_CONFIG_FILE, specifies where to create the RabbitMQ configuration file.

Important

This step should be completed before installing the RabbitMQ Server application.

To add an environment variable, follow these steps:

  1. Open the Windows Control Panel.
  2. Select System.
  3. On the System screen, select Advanced system settings. The System Properties window is displayed.

  4. On the Advanced tab, select Environment Variables. The Environment Variables window is displayed.

  5. In the System variables section, select New. The New System Variable window is displayed.

  6. Complete the following fields:
    • Variable name—enter RABBITMQ_BASE.
    • Variable value—enter the location to designate for the data and log files.
    Example

    E:\RabbitMQ

  7. Select OK.
  8. Select New again to add the next environment variable.
  9. Complete the following fields:
    • Variable name—enter RABBITMQ_CONFIG_FILE.
    • Variable value—enter the desired location for the configuration file.
    Example

    E:\RabbitMQ\rabbitmq

    Note

    Make sure the rabbitmq file name in the path does not have the .config extension.

  10. Select OK. Both environment variables are added in the System variables section of the Environment Variables window.

Note

If the recommended RabbitMQ environment variables are added after installing the RabbitMQ server application, the required Rabbit MQ config and log files may not be created or may not be in the correct location. To troubleshoot this issue, refer to RabbitMQ config and log files not found or not in correct location.