RabbitMQ
Management Plugin
RabbitMQ-Plugins
Tech Tutorial
Software Installation

How to install rabbitmq management plugin (rabbitmq-plugins)

System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design

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

  1. 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.
  2. Enabling the Plugin: Use the rabbitmq-plugins command to enable the management plugin. Type the following command:
bash
   rabbitmq-plugins enable rabbitmq_management

This command tells the RabbitMQ service to load the management plugin.

  1. Verifying the Installation: After enabling the plugin, it's good practice to check if it's active. Execute:
bash
   rabbitmq-plugins list

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:

 
http://<your-server-ip>:15672/

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:
bash
  rabbitmq-plugins disable rabbitmq_management
  • Updating Usernames and Passwords: To change the default access credentials, use RabbitMQ's rabbitmqctl command-line tool:
bash
  rabbitmqctl add_user myuser mypassword
  rabbitmqctl set_user_tags myuser administrator
  rabbitmqctl set_permissions -p / myuser ".*" ".*" ".*"

Summary Table

The following table summarizes the essentials of the RabbitMQ Management Plugin:

FeatureDescription
Installation Commandrabbitmq-plugins enable rabbitmq_management
Default Access URLhttp://<your-server-ip>:15672/
Default CredentialsUsername: guest, Password: guest
Key UsesMonitoring 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.


Related reading
Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
Track what you have practised

A free account saves your progress, solutions and study plan across every problem on Codemia.

System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design