How to Use RabbitMQ Management UI: Quick Guide
To use the
RabbitMQ Management UI, first enable the management plugin with rabbitmq-plugins enable rabbitmq_management. Then access the UI by opening http://localhost:15672 in your browser and log in with your RabbitMQ credentials.Syntax
The main command to enable the RabbitMQ Management UI is:
rabbitmq-plugins enable rabbitmq_management: Activates the management plugin.- Access the UI via
http://localhost:15672in a web browser. - Login with your RabbitMQ username and password (default is
guest/gueston localhost).
bash
rabbitmq-plugins enable rabbitmq_management
Output
Enabling plugin rabbitmq_management
The following plugins have been enabled:
rabbitmq_management
Applying plugin configuration to rabbit@yourhostname... done.
Example
This example shows how to enable the management UI and access it:
- Run the command to enable the plugin.
- Open your browser and go to
http://localhost:15672. - Log in with username
guestand passwordguest. - Use the UI to view queues, exchanges, connections, and send test messages.
bash
rabbitmq-plugins enable rabbitmq_management
# Then open your browser at http://localhost:15672
# Login with username: guest
# Password: guestOutput
Enabling plugin rabbitmq_management
The following plugins have been enabled:
rabbitmq_management
Applying plugin configuration to rabbit@yourhostname... done.
# Browser opens the management UI login page
Common Pitfalls
Common mistakes when using RabbitMQ Management UI include:
- Trying to access the UI before enabling the plugin.
- Using the
guestuser remotely (it only works on localhost by default). - Firewall blocking port
15672, preventing browser access. - Not restarting RabbitMQ after enabling the plugin if needed.
To fix remote access, create a new user with permissions and use that instead of guest.
bash
## Wrong: Trying to access UI without enabling plugin # Browser shows connection refused or 404 ## Right: Enable plugin first rabbitmq-plugins enable rabbitmq_management ## Wrong: Using guest user remotely # Login fails ## Right: Create new user for remote access rabbitmqctl add_user myuser mypassword rabbitmqctl set_user_tags myuser administrator rabbitmqctl set_permissions -p / myuser ".*" ".*" ".*"
Output
Enabling plugin rabbitmq_management
The following plugins have been enabled:
rabbitmq_management
Applying plugin configuration to rabbit@yourhostname... done.
Adding user...
Setting tags...
Setting permissions...
Quick Reference
| Action | Command / URL | Notes |
|---|---|---|
| Enable Management UI | rabbitmq-plugins enable rabbitmq_management | Run on RabbitMQ server |
| Access UI | http://localhost:15672 | Open in browser on server machine |
| Default Login | guest / guest | Only works on localhost by default |
| Create New User | rabbitmqctl add_user | For remote access |
| Set User Permissions | rabbitmqctl set_permissions -p / | Grant full access |
Key Takeaways
Enable the management plugin with 'rabbitmq-plugins enable rabbitmq_management' before accessing the UI.
Access the UI at http://localhost:15672 and log in with valid RabbitMQ credentials.
The default 'guest' user only works locally; create new users for remote access.
Ensure port 15672 is open and not blocked by firewalls.
Use the UI to monitor queues, exchanges, connections, and send test messages easily.