RabbitMQ Setup
Enable Management Plugin
To enable the RabbitMQ management plugin, run the following command:
rabbitmq-plugins enable rabbitmq_management
You can execute this command either in the RabbitMQ Command Prompt (installed with RabbitMQ) or in any command prompt/PowerShell window if RabbitMQ's sbin directory has been added to the PATH environment variable.
Troubleshooting: Command Not Found
If the rabbitmq-plugins command is not found, navigate to the RabbitMQ installation directory and execute the script directly:
- Navigate to the RabbitMQ installation path (typically:
C:\Program Files\RabbitMQ Server\rabbitmq_server-<VERSION>\sbin) - Execute the script directly:
.\rabbitmq-plugins.bat enable rabbitmq_management
After enabling the management plugin, restart the RabbitMQ service to ensure the changes take effect.
Port Configuration
To change the default ports used by RabbitMQ, you need to modify the configuration file.
Locate Configuration Directory
Navigate to the RabbitMQ configuration directory. The location depends on whether RabbitMQ was installed for the current user or system-wide:
- User installation:
C:\Users\<YOUR_USER>\AppData\Roaming\RabbitMQ\rabbitmq.conf - System-wide installation:
C:\ProgramData\RabbitMQ\rabbitmq.conf
Edit Configuration File
Open or create the rabbitmq.conf file and add the following settings:
To change the AMQP port:
listeners.tcp.default = 5673
To change the Management UI port:
management.listener.port = 15673
After modifying the configuration, restart the RabbitMQ service for the changes to take effect.