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
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.
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.
Then you would prompt to select the start menu folder and click on the install button.
Now the Erlang installation will start; it will take a while to complete.
After a successful install, probably you would see the below successful window.
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.
Click on the above-highlighted link to redirect RabbitMQ windows installer.
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.
Select RabbitMQ Service, Start Menu options and click on the Next button.
Browse the installation folder and click on the Next button. Then you would see the installation progress.
After this step, you would see the below successful message then click on Finish.
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>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.
Default credentials are:
User Name: guest
Password: guest
Then you would see the following RabbitMQ home page
Done!
References:
- RabbitMQ download for windows
Happy Learning 🙂
Share a word.
Related Posts
Page load link
RabbitMq is used for exchanging messages between cross-platform applications. It can run on Windows, Linux, Mac, and Docker containers. In this post, we will provide easy steps to install rabbitmq on a windows environment.
I hope you are already aware of RabbitMq messaging system. Still, let me provide a brief introduction about it.
What is RabbitMQ?
RabbitMq is an open-source message broker application that implements the Advanced Message Queuing Protocol (AMQP). It is used for exchanging messages between cross-platform applications.
Example: A message sent from a .Net application can be read by a Node.js application or Java application with the help of any messaging system RabbitMq is one of them.
The RabbitMQ is built on the Erlang runtime environment so before we install rabbitmq in windows, first we need to download and install Erlang on our machines.
Install Erlang for RabbitMQ
- Open the official website of erlang https://www.erlang.org/downloads
- Download the Windows binary files as per your windows environment 32 /64 Bit.
- Once the download is completed click on the .exe file and starts installing the erlang. And follow the simple steps to install erlang on the machine.
- Once done with the installation part. Search Erlang in the search window to check if the installation was completed successfully.
- You should be able to see the Erlang shell.
Once done with the above steps then we can move on to the actual installation of RabbitMq.
How to Install Rabbitmq on Windows 10 Machine
Once you have set up the erlang properly. We need to just follow the typical next procedures like any other software to install RabbiMq windows machine.
To Install Rabbitmq Download the suitable version for your machine
Open the official page of the RabbitMq application https://www.rabbitmq.com/download.html
Follow the Typical steps to install
Download the highlighted windows installer. Once the download is completed click on the downloaded .exe file and starts the installation process.
Once done with the installation part. Search for RabbitMq in the windows search bar & Open the RabbitMq command prompt.
check the status of the RabbitMq server by running rabbitmqctl status command.
rabbitmqctl status
If you get a message like this means the service is up and running. You can access the RabbitMq web interface by browsing the application on http://localhost:15672/
How to start RabbitMQ Server in Windows 10
But, before that, you have to enable the web interface by running the following commands. Open RabbitMq command prompt in administrator mode and execute the listed commands.
rabbitmq-plugins enable rabbitmq_management
Now try to access the application by clicking on http://localhost:15672/ to open the user interface for RabbitMq.
Default credential for RabbitMq Web interface
You can access the application by providing the default username: guest and password: guest
Wrapping Up Notes
We understood the rabbitmq in brief and also the prerequisite required for installing it on the windows environment. We just followed the step-by-step guide to install rabbitmq on windows machines.
Also, we executed a few commands to enable the RabbitMq management and login to the user interface using default credentials. I hope you enjoyed this post. Feel free to provide your comments or questions in the comment section below.
Table of Contents
Installing RabbitMQ on Windows 10 is a relatively simple process. First, download the RabbitMQ installer from the official website. Next, run the installer and follow the prompts. Once the installation is complete, open the RabbitMQ Management Console to verify that the service is running. Finally, add the RabbitMQ path to your Windows PATH environment variable to complete the installation.
How do I run RabbitMQ locally on Windows 10?
The easiest way to install RabbitMQ is to use the official apt repository. You can install the repository package manually or using apt-get.
Once the repository is enabled, you can install the RabbitMQ server package:
sudo apt-get install rabbitmq-server
Once the server is installed, you can start it with:
sudo rabbitmq-server start
How do I install RabbitMQ locally?
There are a few different ways to install RabbitMQ locally. One way is to use the RabbitMQ installer, which will install RabbitMQ and all of its dependencies. Another way is to use a package manager like Homebrew or apt-get. Finally, you can also build RabbitMQ from source.
If you are using the RabbitMQ installer, simply run the installer and follow the prompts. If you are using a package manager, you will need to install the RabbitMQ package. Once RabbitMQ is installed, you can start the server by running the rabbitmq-server command.
If you are building RabbitMQ from source, you will first need to install Erlang. Once Erlang is installed, you can clone the RabbitMQ repository and build it using make. Once RabbitMQ is built, you can start the server by running the rabbitmq-server command.
How do I access RabbitMQ on Windows?
The easiest way to access RabbitMQ on Windows is to use the RabbitMQ Management UI, which is a web-based application that you can access from any web browser. Alternatively, you can use the RabbitMQ Command Line Tool, which is a command-line interface that you can use to manage your RabbitMQ server.
How do I access RabbitMQ locally?
There are a few different ways to access RabbitMQ locally. One way is to use the web interface. To do this, you will need to enable the web interface in the RabbitMQ configuration file. Once you have done this, you can access the web interface by going to http://localhost:15672 in your web browser.
Another way to access RabbitMQ locally is through the command line interface. To do this, you will need to install the RabbitMQ command line tools. Once you have done this, you can access the RabbitMQ server by running the following command:
rabbitmqctl status
This will give you information about the RabbitMQ server, including the number of messages in the queue and the number of consumers.
If you want to access the RabbitMQ server remotely, you will need to enable the remote management plugin. To do this, you will need to edit the RabbitMQ configuration file and add the following line:
management.listener.port = 15672
Once you have done this, you can access the RabbitMQ web interface by going to http://localhost:15672 in your web browser.
How do I view RabbitMQ in my browser?
There are a few different ways to view RabbitMQ in your browser. One way is to use the RabbitMQ Management Plugin, which will give you a web-based interface for managing and monitoring your RabbitMQ server. Another way is to use a tool like Webmin, which will allow you to view and manage RabbitMQ from a web-based interface.
How do I know if RabbitMQ is running?
The easiest way to check if RabbitMQ is running is to open the RabbitMQ Management UI in your web browser. The management UI will show you a list of all the queues, exchanges, and consumers on your RabbitMQ server. If you don’t see any queues or exchanges, then RabbitMQ is not running.
Another way to check if RabbitMQ is running is to use the rabbitmqctl command-line tool. The rabbitmqctl tool can be used to list all the queues, exchanges, and consumers on your RabbitMQ server. If you don’t see any queues or exchanges, then RabbitMQ is not running.
If you are using a cluster of RabbitMQ servers, you can use the rabbitmq_cluster_status command-line tool to check the status of each node in the cluster.
How do I install RabbitMQ and start?
The first step is to install RabbitMQ on your system. You can find instructions for doing this on the RabbitMQ website. Once RabbitMQ is installed, you’ll need to start it up. The easiest way to do this is to use the rabbitmq-server command, which is included in the RabbitMQ distribution.
Once RabbitMQ is running, you can start using it. The most common way to interact with RabbitMQ is via AMQP, the Advanced Message Queuing Protocol. There are a number of ways to do this, but the easiest is to use one of the many AMQP client libraries that are available.
How do I open RabbitMQ in my browser?
There are a few steps you can take to open RabbitMQ in your browser:
1. Check to see if your browser is already configured to work with RabbitMQ. Some browsers, like Firefox, can be configured to automatically open RabbitMQ when you visit the site.
2. If your browser isn’t configured to work with RabbitMQ, you can download a plugin or extension that will allow you to view RabbitMQ in your browser.
3. Once you have a plugin or extension installed, you should be able to visit the RabbitMQ site and view it in your browser.
How do I get RabbitMQ command prompt?
There are a few ways to get the RabbitMQ command prompt:
1. One way is to open the RabbitMQ Management UI in a web browser. Then, click on the «Admin» tab, and click on the «Server» tab. This will open a new page with a command prompt at the bottom.
2. Another way is to open the RabbitMQ Management UI in a web browser. Then, click on the «Admin» tab, and click on the «Shell» tab. This will open a new page with a command prompt at the bottom.
3. Another way is to SSH into the server where RabbitMQ is running. Once you are logged in, you can run the «rabbitmqctl» command to get the RabbitMQ command prompt.
How do I connect to RabbitMQ host?
There are a few ways to connect to a RabbitMQ host. One way is to use the management console, which can be accessed via a web browser. Another way is to use the command line tools. Finally, you can use one of the many available client libraries.
What is the default port for RabbitMQ?
The default port for RabbitMQ is 5672.
Рассмотрим установку RabbitMQ (программный брокер сообщений) на Windows.
Установка Erlang
Перед установкой RabbitMQ, убедитесь, что на вашем компьютере установлены Erlang и .NET Framework (обычно они уже установлены, но лучше проверить наличие обновлений).
Erlang. Загрузите установщик Erlang с официального сайта. Запустите установщик и следуйте инструкциям установки, установка очень простая – просто соглашайтесь со всеми пунктами. После установки проверьте, что Erlang правильно установлен, открыв командную строку и введите команду erl. Если Erlang успешно установлен, откроется интерактивная оболочка Erlang. Также разрешаем правила firewall Windows defender, которые срабатывают при запуске компонента.
Установка и запуск RabbitMQ
Теперь можно приступить к установке RabbitMQ. Загрузите установщик RabbitMQ с официального сайта. Запустите установщик RabbitMQ. Установка также простая, соглашаемся со всеми пунктами. Во время установки укажите путь для установки RabbitMQ и другие настройки, если требуется.
После завершения установки, можно запустить RabbitMQ и проверить его работу. Перейдите в папку, где установлен RabbitMQ, и найдите папку “sbin”. Запустите командную строку от имени администратора и перейдите в директорию. Например: C:Program FilesRabbitMQ Serverrabbitmq_server-3.12.2sbin
Выполняем команду для установки Web-плагина:
rabbitmq-plugins.bat enable rabbitmq_management
Далее запускаем последовательно команды:
rabbitmq-service.bat stop rabbitmq-service.bat install rabbitmq-service.bat start
Теперь можно заходить через веб-интерфейс, который по умолчанию работает на порту 15672. Для доступа к веб-интерфейсу откройте веб-браузер и перейдите по адресу http://localhost:15672/. Введите логин и пароль (по умолчанию “guest”/”guest”).
Теперь RabbitMQ установлен и готов к использованию.
Нужна помощь? Обслуживание и настройку RabbitMQ мы осуществляем в рамках услуги DevOps аутсорсинг.
• 3 min read
RabbitMQ — это прекрасный инструмент по работе с очередями, работающий на всех популярных платформах. Если вы планируете использовать систему очередей в своём проекте, вам нужна асинхронная обработка процессов, и работа с задачами в фоне, то RabbitMQ является очень удачным выбором.
RabbitMQ — это отличный инструмент, который выполняет свои задачи превосходно. Отличным преимуществом является качественная документация и широкий спектр функциональных возможностей.
RabbitMQ считается одной из самых продвинутых систем по работе с очередями. Это всё благодаря тому, что RabbitMQ имеет много возможностей. Если хорошо разобраться в этой системе, то, в дальнейшем, работа с другими системами очередей не вызовет у вас конфуза.
Но, прежде, чем писать RabbitMQ tutorial, как обычно, начнём с установки и запуска. В этой статье я шаг за шагом продемонстрирую процесс установки. Если вы ещё не знакомы, с системами очередей, и слабо понимаете механизм их работы, то советую прочитать ранее опубликованную статью об основам очередей.
Установка Erlang
RabbitMQ запускается в виртуальной среде Erlang. Не спрашивайте зачем, просто установите Erlang, без которого RabbitMQ не сможет работать. Последнюю версию для windows можно скачать по ссылке.
На странице скачивания установочного файла нужно выбрать версию, в зависимости от вашей системы (в моём случае, это версия для 64-разрядного процессора):
Установка RabbitMQ
После установки Erlang следующим шагом будет установка самого RabbitMQ (ну наконец-то). Скачать последнюю версию RabbitMQ можно по ссылке.
С установкой всё просто — запускаем скачанный файл, и со всем соглашаемся.
Установка плагина управления RabbitMQ с WEB-интерфейса
После установки, RabbitMQ сразу же будет запущен, потому, можно сразу же начинать с ним работать.
Обычным для программиста является работа из консоли. Но, иногда, одной консоли бывает недостаточно. Потому, в этом шаге будет установлен плагин RabbitMQ Web для работы с очередями из WEB-интерфейса. Этот интерфейс предоставляет удобный вывод статистики, информацию о работающих процессах, логах, и т.д.
Для того, чтобы установить плагин, нужно из консоли перейти в папку sbin, которая находится по пути установки RabbitMQ (в моём случае C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.7\sbin). При этом, запускать нужно от имени администратора.
Или же, проще нажать кнопку winsows, и начать печатать rabbit, и, из найденных результатов интересует в данном случае только RabbitMQ Command Prompt.
Запустив который мы окажемся в консоли, в нужной для работы директории.
В открывшейся консоли нужно выполнить команду
rabbitmq-plugins.bat enable rabbitmq_management,
которая, как раз и включит этот плагин. Получиться должно что-то вроде этого:
Заключительным шагом от нас требуется перезапустить сервис, поочерёдно выполнив команды:
rabbitmq-service.bat stop
rabbitmq-service.bat install
rabbitmq-service.bat start
Теперь, удостоверимся, что все шаги были проделаны правильно, открыв ссылку в адресной строке http://localhost:15672.
Ожидаемо должны увидеть страницу входа в WEB-интерфейс:
По умолчанию, данные для входа в панель управления:
Логин: guest
Пароль: guest
Вот, что вы должны увидеть в итоге:
На этом установка полностью завершена, и сервис RabbitMQ готов к работе. Теперь можно свободно работать, и использовать все функции этого мощного и полезного инструмента. В следующей статье по RabbitMQ будет рассмотрен практический пример по работе с системой очередей: добавление, удаление, обработка, и т.д.
Протестируем работу сервиса
Если вы всё ещё не верите мне, что RabbitMQ работает, то, для теста можете открыть ссылку http://localhost:15672/api/vhosts, пройдя базовую аутентификацию (данные для входа те же — guest:guest), и должны получить JSON-ответ с информацией о состоянии работы сервиса.
Резюме
В этой статье я показал, как установить RabbitMQ на windows 10, как протестировать его работу, и установить плагин RabbitMQ WEB (для работы в WEB-интерфейсе). Это очень крутой инструмент, который рекомендовано освоить каждому программисту.
По поводу «рекомендовано» — это мягко говоря. Сейчас RabbitMQ используется почти во всех high-load проектах. И, зачастую, во всех вакансиях (на PHP программиста) требуют именно знание системы очередей RabbitMQ. Потому, хорошее понимание этого инструмента, и опыт работы с ним повышает шансы найти работу в хорошей компании.
