Rabbitmq management plugin windows

By|

Last Updated On
Monday,
Jul 09, 2018

To enable web user interface (User Management Plugin) for RabbitMQ. Just follow 4 easy steps given below.

  1. Open the command prompt & go to below location.

    C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.2.3\sbin
    

    enter image description here

  2. Hit below command:

    rabbitmq-plugins enable rabbitmq_management
    

    This command will actually run rabbitmq-plugins batch file which is present inside sbin folder.

    enter image description here

  3. Now, restart the RabbitMQ service.

    enter image description here

  4. Go to browser & hit this URL http://localhost:15672

    enter image description here

That’s all…:)

RabbitMQ is a great queuing tool that can run on a variety of platforms. If you are planning on doing any distributed, asynchronous processing and you need a system to queue and process items in the background, then you should seriously consider RabbitMQ. The online documentation is great and there are plenty of tutorials that can take you through the basics of creating and consuming queues in your application. However, before you start typing any code, you first you need to get RabbitMQ up and running somewhere (local system, server etc). In this post, we will go through the installation steps and see what’s needed to get us to that point.

1. Erlang Installation####

RabbitMQ runs on the Erlang virtual runtime. Don’t ask me why, but it does, so we need to install Erlang first as without it we can’t get RabbitMQ to work. You can get the latest Windows installer here. Make sure you choose the 32 or 64bit version depending on the system you plan to run it. Download and install it. There is no restart required, so this first step is easy. Before we continue, ensure that the appropriate environment variable (ERLANG_HOME) has been created during the installation. If, for any reason, the environment variable is missing, you will need to create it manually as per the image below:

2. RabbitMQ Service Installation####

Grab the latest installer for Windows from the RabbitMQ website here Download and install. Again, nothing funcy here.

3. RabbitMQ Web Management Plugin installation####

RabbitMQ runs, by default, as a Windows Service and technically you shouldn’t need to do anything else to start interacting with it. However, any interaction with the service needs to happen over the command-line. If you are not a die-hard command-line, then there is an solution for you. RabbitMQ comes with a handy and, nice if I may say, web-based management plugin which is part of the installation files. To install the web plugin you just need follow the steps below:

  • Open an elevated command line (Run as Administrator)
  • Navigate to the sbin directory of the RabbitMQ Server installation directory. In my case the path is C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.3.4\sbin
  • Run the following command to enable the plugin
    rabbitmq-plugins.bat enable rabbitmq_management
  • Then, re-install the RabbitMQ service using the commands below:
rabbitmq-service.bat stop 
rabbitmq-service.bat install 
rabbitmq-service.bat start 

To check if everything worked as expected, navigate to http://localhost:15672/mgmt. You will be prompted for username and password. The default credentials are:
Username: guest
Password: guest

You should now be presented with the following page:

4. Install Handle.exe for RabbitMQ’s file descriptors####

When you first log in to the RabbitMQ web dashboard, under the «Overview» tab you will notice that in the «File descriptors» field there is a question mark about the missing Handle.exe. Handle.exe enables RabbitMQ to monitor the local file system. It will still work without it but I think that it’s better to make it available, so let’s go and get it. The dashboard provides a handy link to the Handle download page, but you can also use this link to go to that same page directly. As a side-note, this tool is written by no one else but Mark Russinovich himself. This guy is a genius!

Download the zip file and unzip it anywhere you want. I decided to extract mine in “C:\Program Files\Handle”. It is important that you keep a note of the extracted path as we will need to add it to PATH environment variable so it is available to RabbitMQ.

  • Open the Environment Variables Windows,
  • Scroll down to the System Variables -> Path variable and click on Edit.
  • At the end of the Variable Value, add the path to the Handle.exe:
  • Click OK twice to close all windows down

Finally, we need to restart the RabbitMQ service so that our changes can be picked up. Use the steps below to restart the service:

  • Open up an elevated command line
  • Type the following commands
rabbitmq-service.bat stop 
rabbitmq-service.bat start 

Go back to the web dashboard and check the Overview page. The warning about the missing Handle.exe should now be gone.

Next time we will look into how we can use the queuing platform and integrate it with our .NET code.

Happy coding…

Looking for a reliable message broker service that can help you manage your data effectively?
Look no further than RabbitMQ — a popular AMQP (Advanced Message Queuing Protocol) based message broker that’s trusted by developers and businesses worldwide. Available for Windows, Linux, and macOS, RabbitMQ is easy to install and use and offers a range of powerful features for message queuing and routing. To start with RabbitMQ on your Windows machine, you must install Erlang/OTP first. In this article, we’ll walk you through the process of installing and configuring RabbitMQ on Windows, so you can start using this powerful tool to manage your data more effectively.

How to Install RabbitMQ?

Step 1. Download Erlang/OTP for RabbitMQ from the Erlang downloads web page. Before downloading Erlang, check the version compatibility with RabbitMQ from this page. 2) Run the Erlang setup to start the installation.

ErlangSetup

Step 2. After completing the Erlang installation, download the RabbitMQ from the downloads webpage. Download the official installer of RabbitMQ. Alternatively, you can install it using Chocolatey.

Step 3. Make sure to install the RabbitMQ Server as administrator. Run the setup to start the installation.

RabbitMQSetup

Step 4. At the end of the installation, select the Start RabbitMQ service check box and click Finish.

RabbitMQ-FinalStep

Step 5. Go to the Start menu and open the Run command. Open the Services list by running services.msc in the run window.

Step 6. Make sure the RabbitMQ service is running.

services-list

Configure the RabbitMQ Management Console

Step 1. Open the Windows command prompt/PowerShell window and switch to the RabbitMQ installed location. By default, RabbitMQ executables will be installed in the C:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.13\sbin location.

Step 2. Run the rabbitmq-plugins and enable the rabbitmq_management command in the command window. If you use PowerShell, run .\rabbitmq-plugins.bat to enable the rabbitmq_management command.

.\rabbitmq-plugins.bat enable rabbitmq_management
rabbitmq-plugins enable rabbitmq_management

Enable-admin-console

Step 3. Restart the RabbitMQ server. Run the following commands in PowerShell/command window.

.\rabbitmqctl.bat stop
.\rabbitmq-server.bat  -detached
rabbitmqctl.bat stop
rabbitmq-server.bat -detached

Step 4. Open the browser and navigate to http://localhost:15672.

Management console

Step 5. Login with the default username and password. The default username is guest, and the password is guest.

Home Page

Step 6. Navigate to the Admin tab, and specify a username and password. Select the role as administrator by clicking on the admin from the list of roles. Click on Add user button.

Create User

Step 7. The new user created will not have login permission to the management console. You need to provide access to the virtual host to enable login permission.

Newuser

Step 8. Click on the username; in the user console, select the virtual host(/) and click the Set Permission button.

ConsoleAccess

Step 9. Log out of the guest user and log in with the new user username and password.

Conclusion

Congratulations! You’ve successfully installed and configured RabbitMQ on your Windows machine and set up the management console to start managing your data with ease. With RabbitMQ, you have access to a powerful message broker that can help you optimize your data management, streamline your workflows, and ensure smooth communication between your applications. Whether you’re new to RabbitMQ or an experienced user, our step-by-step guide has everything you need to get started and take full advantage of this versatile tool. By following these simple steps, you can start enjoying the benefits of RabbitMQ today.

Skip to content

How to install RabbitMQ on Windows 10

In this tutorial, we will see how to install RabbitMQ on Windows 10 operating system.

Install RabbitMQ on Windows:

Installing RabbitMQ in windows is a straight and straightforward process; the only thing you have to know about your system information and download appropriate RabbitMQ installer.

Version Information:

  • Windows 10 Pro 64 Bit
  • RabbitMQ Server 3.7.15
  • otp_win64_22.0 (Erlang)

Prerequisites:

RabbitMQ runs on Erlang virtual machine. So that to install/run the RabbitMQ, initially we have to install the Erlang. If you already installed Erlang on your machine, you can skip this step and directly move to RabbitMQ installation.

1. Install Erlang on Windows:

Download the latest Erlang from the official website for me it is OTP 22.0

How to install RabbitMQ on Windows 10-min

Click on the above highlighted OTP 22.0 windows xx-bit Binary file; it will be around 94+ MB in size.

After successful download double click on the otp_win64_22.0 file then you would see the below setup window.

How to install RabbitMQ on Windows 10 2-min

Select the Erlang checkbox and click on the Next button. Then choose the destination folder to install the Erlang and click on the Next button.

How to install RabbitMQ on Windows 10 3-min

Then you would prompt to select the start menu folder and click on the install button.

How to install RabbitMQ on Windows 10 4-min

Now the Erlang installation will start; it will take a while to complete.

How to install RabbitMQ on Windows 10 5-min

After a successful install, probably you would see the below successful window.

How to install RabbitMQ on Windows 10 6-min

Click on the close button. Now you completed the Erlang installation so that you can install the RabbitMQ now.

2. Install RabbitMQ on Windows 10:

Download the latest RabbitMQ server from the official website for me it is 3.7.15.

How to install RabbitMQ on Windows 10 7-min

Click on the above-highlighted link to redirect RabbitMQ windows installer.

How to install RabbitMQ on Windows 10 8-min

Click on the above highlighted rabbitmq-server-x.x.xx.exe file to download, after downloading double click on the .exe file to install. Then you would see the below installation wizard.

How to install RabbitMQ on Windows 10 9-min

Select RabbitMQ Service, Start Menu options and click on the Next button.

How to install RabbitMQ on Windows 10 10-min

Browse the installation folder and click on the Next button. Then you would see the installation progress.

How to install RabbitMQ on Windows 10 13-min

After this step, you would see the below successful message then click on Finish.

How to install RabbitMQ on Windows 10 14-min

Now the RabbitMQ installation has been completed.

3. Enable RabbitMQ Management Plugin:

RabbitMQ runs, by default as a windows service, if you are very much interested in working with the command line tool, it’s up to you.

But anyone wants to access it from the web interface, who are need to enable the RabbitMQ management plugin by using the below command on your RabbitMQ command prompt.

Open RabbitMQ command prompt (which will be install as part the above installation steps) and hit the below command.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.15\sbin
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.15\sbin>rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@DESKTOP-RN4SMHT:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@DESKTOP-RN4SMHT...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch

started 3 plugins.

Now everything Done!

4. Verification:

To check everything as expected open any browser and access the http://localhost:15672 URL then you would see the below RabbitMQ login page.

How to install RabbitMQ on Windows 10 15-min

Default credentials are:

User Name: guest

Password: guest

Then you would see the following RabbitMQ home page

How to install RabbitMQ on Windows 10 16-min

Done!

References:

  • RabbitMQ download for windows

Happy Learning 🙂

Share a word.

Related Posts

Page load link

ERLANG

What is RabbitMQ?

RabbitMQ is a powerful open-source message broker that facilitates communication between different parts of a system in a reliable and efficient manner. It uses the Advanced Message Queuing Protocol (AMQP) for message routing, allowing applications to send and receive messages asynchronously. With RabbitMQ, developers can decouple components of applications and improve the scalability and reliability of their systems.

Key Features of RabbitMQ:

  • Language Agnostic: Supports multiple programming languages including Java, Python, Ruby, and .NET.

  • High Availability: Provides clustering, replication, and other features to ensure messages are reliably stored and delivered.

  • Flexible Routing: Offers various routing mechanisms like direct, topic, headers, and fanout exchanges.

  • Management UI: Comes with a user-friendly web interface for managing and monitoring the RabbitMQ server.

  • Plugins: Supports a wide range of plugins for enhanced functionality, such as monitoring tools and various protocol support.

System Requirements

Before installing RabbitMQ on your Windows machine, it’s essential to ensure that you have the following prerequisites:

  • Operating System: Windows 10 or higher, or Windows Server 2016 and later.

  • Erlang: RabbitMQ is built on Erlang, so you need to install Erlang first. Make sure to install the version compatible with your RabbitMQ version.

  • RAM: A minimum of 2 GB of RAM is recommended for optimal performance.

Step-by-Step Guide to Install RabbitMQ on a Windows Machine

Step 1: Install Erlang

  1. Download Erlang:

    • Visit the Erlang Downloads page.

    • Choose the latest version of the Erlang/OTP for Windows.

  2. Install Erlang:

    • Run the downloaded installer.

    • Follow the installation prompts, and make sure to note the installation directory (usually C:\Program Files\erl-{version}).

  3. Set Environment Variables:

    • Right-click on “This PC” or “Computer” and select “Properties”.

    • Click on “Advanced system settings”, and then on “Environment Variables”.

    • Under “System variables”, find the Path variable, click on “Edit”, and add the path to the bin folder inside your Erlang installation directory, e.g., C:\Program Files\erl-{version}\bin.

Step 2: Install RabbitMQ

  1. Download RabbitMQ:

    • Go to the RabbitMQ Downloads page.

    • Download the latest RabbitMQ server installer for Windows (usually ends in .zip).

  2. Install RabbitMQ:

    • Extract the downloaded ZIP file to a location of your choice (e.g., C:\RabbitMQ).

    • Open a Command Prompt with administrative privileges.

    • Navigate to the sbin folder of your RabbitMQ installation, e.g., cd C:\RabbitMQ\rabbitmq_server-{version}\sbin.

    • Run the following command to install the RabbitMQ service:

  3. Start RabbitMQ Service:

    • To start the RabbitMQ service, use the command:

Step 3: Enable the RabbitMQ Management Plugin

The RabbitMQ management plugin provides a web-based UI for monitoring and managing your RabbitMQ server.

  1. Enable the Plugin:

    • In the Command Prompt, execute:

      
      rabbitmq-plugins enable rabbitmq_management
      
  2. Access the Management UI:

    • Open a web browser and go to http://localhost:15672.

    • The default username and password are both guest.

Step 4: Configuring RabbitMQ

You may want to configure your RabbitMQ server according to your requirements.

  1. Configuration File:

    • A configuration file (named rabbitmq.conf) can be created in the etc directory of your RabbitMQ server installation.

    • For example, to change the default port from 5672 to 5673, you can specify:

      
      listeners.tcp.default = 5673
      
  2. Restart the RabbitMQ Service:

    • After any configuration change, you need to restart the service:

Testing Your RabbitMQ Installation

To confirm that RabbitMQ is running correctly, you can use the Command Prompt to check the status:

You should see a detailed output about the RabbitMQ server status, including its version, running nodes, and other metrics.

Conclusion

Installing RabbitMQ on a Windows machine is a straightforward process that requires setting up Erlang first, followed by the RabbitMQ installation. By enabling the management plugin, you can effectively monitor and manage your message broker through a web interface. With RabbitMQ, you can create robust applications that efficiently handle messages between different components, greatly enhancing scalability and reliability.

Further Resources

  • RabbitMQ Official Documentation

  • Erlang Documentation

This installation guide provides the essential steps to set up RabbitMQ, allowing developers to leverage its powerful features in their applications. If you encounter any issues during your installation, consult the official documentation for troubleshooting tips and FAQs.

Suggested Articles

ERLANG

ERLANG

ERLANG

ERLANG

ERLANG

ERLANG

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Кнопка windows на маке
  • Критический системный процесс c windows system32 lsass exe завершился ошибкой с кодом состояния c0000005
  • Поддержка китайского языка в windows 7
  • Ошибка агента обновлений windows 80246010
  • Ошибка восстановления системы windows 10 0x81000202