1RABBITMQ-ENV.CONF(5) BSD File Formats Manual RABBITMQ-ENV.CONF(5)
2
4 rabbitmq-env.conf — environment variables used by RabbitMQ server
5
7 rabbitmq-env.conf contains environment variables that override the de‐
8 faults built in to the RabbitMQ scripts and CLI tools.
9
10 The file is interpreted by the system shell, and so should consist of a
11 sequence of shell environment variable definitions. Normal shell syntax
12 is permitted (since the file is sourced using the shell "." operator),
13 including line comments starting with "#".
14
15 In order of preference, the startup scripts get their values from the en‐
16 vironment, from rabbitmq-env.conf and finally from the built-in default
17 values. For example, for the RABBITMQ_NODENAME setting,
18 RABBITMQ_NODENAME from the environment is checked first. If it is absent
19 or equal to the empty string, then NODENAME from rabbitmq-env.conf is
20 checked. If it is also absent or set equal to the empty string then the
21 default value from the startup script is used.
22
23 The variable names in rabbitmq-env.conf are always equal to the environ‐
24 ment variable names, with the "RABBITMQ_" prefix removed:
25 RABBITMQ_NODE_PORT from the environment becomes NODE_PORT in
26 rabbitmq-env.conf.
27
29 Below is an example of a minimalistic rabbitmq-env.conf file that over‐
30 rides the default node name prefix from "rabbit" to "hare".
31
32 # I am a complete rabbitmq-env.conf file.
33 # Comment lines start with a hash character.
34 # This is a /bin/sh script file - use ordinary envt var syntax
35 NODENAME=hare
36
37 In the below rabbitmq-env.conf file RabbitMQ configuration file location
38 is changed to "/data/services/rabbitmq/rabbitmq.conf".
39
40 # I am a complete rabbitmq-env.conf file.
41 # Comment lines start with a hash character.
42 # This is a /bin/sh script file - use ordinary envt var syntax
43 CONFIG_FILE=/data/services/rabbitmq/rabbitmq.conf
44
46 rabbitmq-echopid(8), rabbitmq-plugins(8), rabbitmq-server(8),
47 rabbitmq-queues(8), rabbitmq-streams(8), rabbitmq-upgrade(8),
48 rabbitmqctl(8)
49
51 The RabbitMQ Team <info@rabbitmq.com>
52
53RabbitMQ Server September 28, 2019 RabbitMQ Server