How to install rabbitmq management plugin (rabbitmq-plugins)
Master System Design with Codemia
Enhance your system design skills with over 120 practice problems, detailed solutions, and hands-on exercises.
RabbitMQ is a popular open-source message broker that supports several messaging protocols. To effectively manage and monitor your RabbitMQ servers, the RabbitMQ Management Plugin (rabbitmq-plugins) is an invaluable tool. It provides a user-friendly web interface that offers both operational insight and control over the RabbitMQ server. In this guide, we will walk through the steps of installing and enabling the RabbitMQ management plugin.
Prerequisites
Before installing the management plugin, ensure that you have RabbitMQ installed on your system. RabbitMQ can be installed on various operating systems, and it requires Erlang to be installed as a prerequisite. We assume RabbitMQ and Erlang are already set up for the purpose of this guide.
Installing the RabbitMQ Management Plugin
- Accessing the Terminal or Command Prompt: Start by accessing your command line interface. On Windows, this could be Command Prompt or PowerShell, and on macOS or Linux, it will typically be the Terminal.
- Enabling the Plugin: Use the
rabbitmq-pluginscommand to enable the management plugin. Type the following command:
This command tells the RabbitMQ service to load the management plugin.
- Verifying the Installation: After enabling the plugin, it's good practice to check if it's active. Execute:
Look for rabbitmq_management in the list and check that it is marked as [E], indicating that it is enabled.
Accessing the Management UI
Once the plugin is enabled, the RabbitMQ Management UI is accessible via a web browser. By default, it is available on port 15672. You can open any web browser and navigate to:
The default username and password are guest/guest, unless you have changed these during your RabbitMQ server setup.
Key Features of the RabbitMQ Management Plugin
The RabbitMQ Management Plugin offers numerous features to manage your RabbitMQ instance efficiently:
- Overview Tab: Provides a bird’s eye view of the RabbitMQ node, showing details about the node's performance.
- Connections & Channels: Allows for monitoring and managing client connections and channels.
- Exchanges & Queues: Interfaces to manage exchanges and queues, including messages.
- Admin Section: Supports user management and permissions, virtual hosts management, and more.
Useful Commands and Operations
Beyond installation and basic access, various commands and operations can prove useful when managing RabbitMQ with this plugin:
- Disabling the Plugin: If needed, the plugin can be disabled with the following command:
- Updating Usernames and Passwords: To change the default access credentials, use RabbitMQ's
rabbitmqctlcommand-line tool:
Summary Table
The following table summarizes the essentials of the RabbitMQ Management Plugin:
| Feature | Description |
| Installation Command | rabbitmq-plugins enable rabbitmq_management |
| Default Access URL | http://<your-server-ip>:15672/ |
| Default Credentials | Username: guest, Password: guest |
| Key Uses | Monitoring nodes, managing connections, channels, queues and exchanges |
Conclusion
The RabbitMQ Management Plugin provides a comprehensive interface to oversee and operate your RabbitMQ instances. It facilitates better control and visualization of the message broker's functioning, aids in troubleshooting, and improves overall manageability. Following these steps should help you effectively install and leverage the capabilities of the RabbitMQ management plugin. Generally, changes in RabbitMQ - like installing or disabling plugins - may require a restart of the RabbitMQ service to take effect fully. As you progress, consider adapting security practices, like changing default credentials and regulating access through firewalls and network configurations.

