RabbitMQ is currently a very popular message middleware, which is widely used in both the Internet industry and traditional industries. RabbitMQ is favored by more and more enterprises due to its high reliability, easy expansion, high availability and rich features. The following will introduce the installation of RabbitMQ under Windows system.
1. Install Erlang
RabbitMQ is written in Erlang language, and because of this, you need to install Erlang before installing RabbitMQ. It is recommended to use a newer version of Erlang, so that you can get more updates and improvements.
1.1 Download and install
Rrlang official download address: https://www.erlang.org/downloads
(1) Download the Erlang installation file
(2) Double-click the installation file to perform the installation operation
(3) Select the installation path and click Next
(4) Wait for the installation to complete
1.2 Set environment variables
Then you need to set environment variables to install and configure Rrlang into the operating system environment. Open the system properties panel (right-click "My Computer" → "Properties" on the desktop), click Advanced System Settings → Environment Variables.
(1) New system variable
Variable name: Erlang_Home
Variable value: D:\Program Files\erl-23.2
(2) Modify the value of the Path variable
Add after the value of the Path variable: %Erlang_Home%\bin
1.3 Check Rrlang installation
After configuring the environment variables, add a new cmd window (press the shortcut key "Win+R", enter "cmd").
Run the command: erl
Check the installation of Rrlang:
2. Install RabbitMQ
The installation of RabbitMQ is similar to the installation of Rrlang, you can install it directly with the downloaded installation package.
2.1 Download and install
RabbitMQ official download address: https://www.rabbitmq.com/download.html
(1) Download the RabbitMQ installation file
(2) Double-click the installation file to perform the installation operation
(3) Select the installation path and click Next
(4) Wait for the installation to complete
2.2 Set environment variables
Then you need to set environment variables to install and configure RabbitMQ into the operating system environment. Open the system properties panel (right-click "My Computer" → "Properties" on the desktop), click Advanced System Settings → Environment Variables.
(1) New system variable
Variable name: RabbitMQ_Server
Variable value: D:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9
(2) Modify the value of the Path variable
Add after the value of the Path variable: %RabbitMQ_Server%\sbin
2.3 Check RabbitMQ installation
After configuring the environment variables, add a new cmd window (press the shortcut key "Win+R", enter "cmd").
Run the command: rabbitmq-plugins list
The rabbitmq-plugins list command is used to view the plug-ins installed by RabbitMQ.
Check the installation of RabbitMQ:
2.4 Install RabbitMQ plug-in
Open a new cmd window (press the shortcut key "Win+R", enter "cmd").
Run the command: d:
Run the command: cd D:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin
Run the command : rabbitmq-plugins enable rabbitmq_management
3. Run RabbitMQ
3.1 Start RabbitMQ
When RabbitMQ is installed, it can be started.
(1) Start method 1
File directory: D:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin
Double-click to start the file: rabbitmq-service.bat
(2) Start method 2
Start in the Windows service.
3.2 RabbitMQ management page
Enter the address in the browser: http://localhost:15672/
User name: guest
Login password: guest