This article is still about installing RabbitMQ, but on a Windows machine. The reason is that I was asked to install RabbitMQ on a Windows PC, because I am used to Linux, so I have been operating on the VM Linux. Rabbitmq: RabbitMQ: rabbitMQ: RabbitMQ: RabbitMQ: RabbitMQ: RabbitMQ: RabbitMQ: RabbitMQ So the following directly record the entire installation process.

1. Erlang installation

First, you need to install the supported Version of Erlang for Windows. Download and run the Erlang for Windows installer.

Why install Erlang? Because the RabbitMQ server code is written using the concurrency language Erlang, Erlang is a prerequisite for installing RabbitMQ.

  • Download address www.erlang.org/downloads, my PC is 64-bit so download the 64-bit version.

  • The following is my foolproof installation process (skip this step if you don’t need it)

Configure environment variables:ERLANG_HOME = D: \ erl10.3(Just install path)

Then add the argument to path:%ERLANG_HOME%\bin;

  • Verify that Erlang is configured correctly and starts properlywindows+REnter CMD to open the command windowerl, the following version number is displayed, which proves that we have configured successfully!

2. Download rabbitMQ and install it

Download address:www.rabbitmq.com/install-win…

The installation process on my side is as follows (foolishly next, which will be skipped) :

Rabbitmq environment variable configuration

1, RABBITMQ_SERVER = D: \ the rabbitmq \ RABBITMQ_SERVER – 3.7.13

Add %RABBITMQ_SERVER%\sbin to Path;

Install rabbitmq-plugins to activate Rabbitmq_management. Windows +R, enter CMD to run the CD command to go to the sbin directory for RabbitMQ. Run rabbitmq-plugins enable rabbitmq_management

(4), let’s start the RabbitMQ service

The first way is to find the sbin directory in the installation directory, my local directory is: 'D:\rabbitmq\rabbitmq_server-3.7.13\sbin', find the script 'rabbitmq-server.bat' and double-click it. This file is a RabbitMQ startup service command.Copy the code

Double-clicking will automatically pop up a command box as follows:

Then enter http://localhost:15672 (port 15672 is the default port for RabbitMQ, see the rabbitMQ documentation to see why).

Note: The default rabbitMQ account and password are guest.

After login, the interface is shown as follows:

Second startup method: close the command box opened above. `net stop RabbitMQ && net start RabbitMQ`Copy the code

The following situations may occur:

This tells us that RabbitMQ is not a Windows service, so we need to register for a Windows service: switch directory to sbinrabbitmq-service.bat installInstall the

To check if rabbitMQ is registered with a Windows service, enter services. MSC on Windows +R:

If it is registered, you can use the start command. Enter net start RabbitMQ. The following screen is displayed.

Then the display will look like the one above. At this point, the entire Configuration of RabbitMQ in Windows is complete!

The use of RabbitMQ will begin below, with each section covered in the code, so stay tuned for new rabbitMQ usage and the most popular message queue services.

For Linux versions, see the next section: RabbitMQ — Centos7 Installing RabbitMQ tutorial and PHP enabling RabbitMQ extensions

conclusion

For those of you who use Windows a lot, set up a local RabbitMQ service quickly.

Note: This article is from 2018 and is subject to change as iterations in the history of technology move, the article is for moving to Nuggets.

Finally, please pay attention to my personal public account “I am AMu”. I will update back-end knowledge points and study notes irregularly. Also welcome to contact me directly on the public account, private message or email, we can learn together, progress together.

Ok, I am a mu, a worker who does not want to be eliminated at the age of 30 ⛽️ ⛽️ college. Writing is not easy to feel “A mu” wrote a bit of material words: 👍 pay attention to, 💖 share, we will see you next time.