RABBITMQ-ENV.CONF(5)
π RABBITMQ-ENV.CONF β the manual, but make it make sense π
okay bestie, so this is the rabbitmq-env.conf(5) page β it lives in the File Formats Manual section, and honestly? it's a little guy with main character energy. let's get into it πβ¨
β¨ NAME β¨
rabbitmq-env.conf β environment variables used by RabbitMQ server π
πΈ DESCRIPTION πΈ
rabbitmq-env.conf is where you keep environment variables that override the defaults baked right into the RabbitMQ scripts and the CLI tools. like, the vibes the scripts were born with? you can change them. π
The file gets interpreted by the system shell, so it's basically just a sequence of shell environment variable definitions. Normal shell syntax is permitted, because the file is sourced using the shell . operator β and yeah, that includes line comments starting with #. π
In order of preference, the startup scripts get their values from three places, in this exact order:
- the environment π
- then
rabbitmq-env.confπ - and finally the built-in default values π
fr fr, walk with me. take the RABBITMQ_NODENAME setting:
RABBITMQ_NODENAMEfrom the environment gets checked first π- if it's absent, or set equal to the empty string, then
NODENAMEfromrabbitmq-env.confgets checked next - if that's also absent or set equal to the empty string, then the default value from the startup script is used π
And here's the lil naming trick that makes it all click: the variable names in rabbitmq-env.conf are always equal to the environment variable names with the RABBITMQ_ prefix removed. so RABBITMQ_NODE_PORT from the environment becomes NODE_PORT in rabbitmq-env.conf. no cap, that's the whole transformation. π¦
π EXAMPLES π
First up, a minimalistic rabbitmq-env.conf that overrides the default node name prefix from "rabbit" to "hare". iconic behavior honestly π°β‘οΈπ
# I am a complete rabbitmq-env.conf file.
# Comment lines start with a hash character.
# This is a /bin/sh script file - use ordinary envt var syntax
NODENAME=hare
And next, the rabbitmq-env.conf that changes the RabbitMQ configuration file location to "/data/services/rabbitmq/rabbitmq.conf". glow up for your config path β¨
# I am a complete rabbitmq-env.conf file.
# Comment lines start with a hash character.
# This is a /bin/sh script file - use ordinary envt var syntax
CONFIG_FILE=/data/services/rabbitmq/rabbitmq.conf
π SEE ALSO π
the friend group, assembled π
rabbitmq-plugins(8)rabbitmq-server(8)rabbitmq-queues(8)rabbitmq-streams(8)rabbitmq-upgrade(8)rabbitmqctl(8)
π AUTHOR π
The RabbitMQ Team <contact-tanzu-data.pdl@broadcom.com> π«Ά
and that's the whole page bestie, you ate it up, no crumbs left π
this was the RabbitMQ Server manual, June 22, 2023 β RabbitMQ Server, RABBITMQ-ENV.CONF(5) β byeeee, go configure something iconic π
π
π¦ where this page comes from
- alpine 3.24: rabbitmq-server-doc 4.3.7-r0 Β· MPL-2.0
- arch rolling: rabbitmq 4.3.6-1 Β· MPL-2.0
- nixpkgs unstable: rabbitmq-server 4.3.1
- ubuntu stonking: rabbitmq-server 4.3.2-4ubuntu3 Β· MPL-1.1
- Copyright (c) 2007-2026 Broadcom. All Rights Reserved. The term βBroadcomβ refers to Broadcom Inc. and/or its subsidiaries. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms