RABBITMQ-SERVICE.BAT(8)
๐โจ rabbitmq-service.bat โ the manual (yes, the whole thing)
So like, this is the page for rabbitmq-service.bat, from the System Manager's Manual, section 8. Bestie. Sit down. We're learning Windows service management today and honestly? It's giving useful. ๐
๐ NAME ๐
rabbitmq-service.bat โ the tool for managing the RabbitMQ Windows service. That's it. That's the vibe. ๐
๐ธ SYNOPSIS ๐ธ
rabbitmq-service.bat [command]
One optional command. That's the whole interfacing situation, no cap. โจ
๐ฆ DESCRIPTION ๐ฆ
RabbitMQ is an open source multi-protocol messaging broker. Iconic. Legendary. We stan. ๐
So here's the thing: running rabbitmq-service.bat lets the RabbitMQ broker run as a service in Windowsยฎ environments. And like โ the RabbitMQ broker service can be started and stopped using the Windowsยฎ services panel. That's the whole main character move. ๐
Now the important-ish part, lowkey the plot twist: by default the service runs in the authentication context of the local system account. Which means โ and listen, because this is the part people forget โ it is therefore necessary to synchronise Erlang cookies between the local system account (typically C:\Windows\.erlang.cookie) and the account that will be used to run rabbitmqctl(8). Like, both sides gotta have the matching cookie. It's a whole thing. ๐ญ
โญ COMMANDS โญ
Okay these are the actual commands, one bullet each, no skipping, we're eating the whole plate:
helpโ Display usage information. Baby's first command, literally. ๐ผinstallโ Install the service. The service will not be started. Note that subsequent invocations will update the service parameters if relevant environment variables were modified. So re-running it isn't a "oops I broke it" moment โ it's a refresh. Slay. ๐ฅremoveโ Remove the service. If the service is running then it will automatically be stopped before being removed. And here's the reassuring bit: no files will be deleted as a consequence andrabbitmq-server(8)will remain operable. Your stuff is safe, bestie. ๐ซถstartโ Start the service. The service must have been correctly installed beforehand. Like, you can't start what isn't there. ๐stopโ Stop the service. The service must be running for this command to have any effect. (No running service = no effect. It's not mad at you, it just does nothing.) ๐disableโ Disable the service. This is the equivalent of setting the startup type to Disabled using the service control panel. Exact same energy, just from the command line. ๐enableโ Enable the service. This is the equivalent of setting the startup type to Automatic using the service control panel. โจ
๐ ENVIRONMENT ๐
These are the env vars, and honestly each one is a little personality trait:
RABBITMQ_SERVICENAMEโ Defaults toRabbitMQ. It's the name of the service. Name era. ๐RABBITMQ_BASEโ Note: Windows only. Defaults to the application data directory of the current user. This is the location of log and database directories. So that's where all your little files live. ๐๏ธRABBITMQ_NODENAMEโ Defaults to"rabbit@"followed by the computed hostname. Can be used to run multiple nodes on the same host. Every node in a cluster must have a uniqueRABBITMQ_NODENAMEโ like, that's non-negotiable, don't name two of your children the same thing. To learn more, see the RabbitMQ Clustering guide: https://www.rabbitmq.com/docs/clustering ๐ฏRABBITMQ_NODE_IP_ADDRESSโ By default RabbitMQ will bind to all IPv6 and IPv4 interfaces available. This variable limits the node to one network interface or address family. So it's the "actually, just this one please" knob. To learn more, see the RabbitMQ Networking guide: https://www.rabbitmq.com/docs/networking ๐ธ๏ธRABBITMQ_NODE_PORTโ AMQP 0-9-1 and AMQP 1.0 port. Defaults to5672. To learn more, see the RabbitMQ Networking guide: https://www.rabbitmq.com/docs/networking ๐ERLANG_SERVICE_MANAGER_PATHโ Defaults toC:\Program Files\erl{version}\erts-{version}\bin(orC:\Program Files (x86)\erl{version}\erts-{version}\binfor 64-bit environments). This is the installation location of the Erlang service manager. Copy it exactly, don't eyeball it. ๐RABBITMQ_CONSOLE_LOGโ Set this variable toneworreuseto have the console output from the server redirected to a file namedSERVICENAME.debugin the application data directory of the user that installed the service. Under Vista this will beC:\Users\AppData\username\SERVICENAME. Under previous versions of Windows this will beC:\Documents and Settings\username\Application Data\SERVICENAME. IfRABBITMQ_CONSOLE_LOGis set tonewthen a new file will be created each time the service starts. IfRABBITMQ_CONSOLE_LOGis set toreusethen the file will be overwritten each time the service starts. The default behaviour whenRABBITMQ_CONSOLE_LOGis not set or set to a value other thanneworreuseis to discard the server output. ๐๏ธ
Okay real talk for a sec: if you don't setRABBITMQ_CONSOLE_LOG(or you set it to literally anything that isn'tneworreuse), the server output just gets thrown away. Gone. Discarded. So if you're like "where are my logs bestie ๐ญ" โ that's why. Set it toneworreuseon purpose.
๐ง SEE ALSO ๐ง
The whole friend group, all eight of them, every single one:
rabbitmqctl(8), rabbitmq-diagnostics(8), rabbitmq-plugins(8), rabbitmq-server(8), rabbitmq-queues(8), rabbitmq-streams(8), rabbitmq-upgrade(8), rabbitmq-env.conf(5)
๐ AUTHOR ๐
The RabbitMQ Team <contact-tanzu-data.pdl@broadcom.com> โ absolute icons, we love them, mwah. ๐
And that's the page!! ๐ This was RabbitMQ Server (that's the source/version vibe, bestie), dated June 22, 2023 โ so go forth and service-manage responsibly. Bye bestie, ily, go slay some Windows services ๐ โจ๐
๐ฆ 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
- 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-1017 on : a language model's rewrite of the original, under its terms