Install and configure the RabbitMQ Server

The summary of the RabbitMQ

RabbitMQ is open source message broker software (also known as message-oriented middleware) that implements the Advanced Message Queuing Protocol (AMQP). RabbitMQ servers are written in Erlang, while clustering and failover are built on top of the open telecom platform framework. All major programming languages have client libraries that communicate with proxy interfaces.

The role of the RabbitMQ

1. Asynchronous processing — for example, inventory reduction and notification of order success can be sent at the same time to improve system efficiency

2. System decoupling — orders send messages to message queues, and inventory subscription messages are read to reduce system complexity and ensure order security

3. Traffic peak clipping – send a large number of requests to the message queue first, and then consume according to the system rules, so as not to overwhelm the system with a short period of high traffic

Install and configure the RabbitMQ Server
1. Download and install Erlang:

The RabbitMQ server is written in Erlang, so you will need to install the RabbitMQ server environment

The official website is very slow to download, here I provide you with the latest installation package, you can also download other versions

Link: pan.baidu.com/s/1REwSNZWV…

Extraction code: 8888

  • Download it at www.erlang.org/downloads

  • Installation: just select the installation directory and complete the next installation
  • Configure environment variables: Create a new Erlang environment variable in advanced system Settings

Parameter: ERLANG_HOME D:\Java\erl-24.0 (own installation path)

  • Add Erlang to path

ERLANG_HOME parameters: % % \ bin

  • After the configuration is complete, open CMD and enter erl. If the version is displayed, the configuration is successful

2. Download and install RabbitMQ Server
  • Download address: www.rabbitmq.com/download.ht…

  • Installation: just select the installation directory and complete the next installation
  • Start/stop RabbitMQ Server

After the installation is complete, the service is enabled by default and can be seen in the service list

Use CMD to go to the sbin directory of the RabbitMQ Server installation directory and run the following command to enable/disable background monitoring

Rabbitmq-plugins enable Rabbitmq_management start

Rabbitmq-plugins disable Rabbitmq_management is disabled

  • Once started, access RabbitMQ Server

Access path:http://127.0.0.1:15672Account: guest Password: guest

After login: This is the RabbitMQ Server management user and RabbitMQ monitoring background

That’s all for this episode, and we’ll keep updating