Windows 64-bit RabbitMQ installation configuration

Source: Internet
Author: User
Tags rabbitmq

In the monolithic project, we usually use the timed task to solve the asynchronous communication problem, distributed common message middleware, in order to expand in different languages and different platforms, use the RABBITMQ of the AMQP protocol to do the message middleware.

MQ is a typical representative of the consumer-producer model, where one end writes messages to the message queue, while the other end reads or subscribes to messages in the queue. MQ is similar to JMS, but the difference is that JMS is a standard and API definition for the Sun Java Messaging Middleware Service, and MQ follows the specific implementations and products of the AMQP protocol.

MQ usage Scenario: in the project, some operations that do not need immediate return and time-consuming are extracted and processed asynchronously, and this method of asynchronous processing greatly saves the request response time of the server, thus improving the throughput of the system.

Installation of RABBITMQ under Windows (Note that the version is consistent), first check whether your computer name is uppercase

0

1: Download Erlang, Address: eralng OTP for Windows otp_win64_18.3.exe (Erlang Environment)
, double-click to install (first loaded)

Https://www.rabbitmq.com/which-erlang.html

2: Download rabbitmq,rabbitmq 3.6.5 download, double click to install

3: After installation generally more error, this is because the RABBITMQ sensitive to the case, the computer name changed to uppercase

4: After the installation is complete, the sbin in the RABBITMQ installation directory will first be: Rabbitmq-server.bat

For example:

Under cmd: Enter Sbin directory, run rabbitmq-server start this interface is the standard successful stop interface

5 : Then add dependencies to the MAVEN project and you can use it.

    <!--https://mvnrepository.com/artifact/com.rabbitmq/amqp-client--      <dependency>          < groupid>com.rabbitmq</groupid>          <artifactId>amqp-client</artifactId>          <version >3.6.5</version>      </dependency>  


Refer to related articles:

Rabbit MQ is built on the powerful Erlang OTP platform, so installing Rabbit MQ is premised on the installation of Erlang. The latest version of the installation can be downloaded through the following two connections:

    1. Download and install ERALNG OTP for Windows otp_win64_18.3.exe (Erlang Environment)
    2. Run Install Rabbit MQ Server Windows Installer (v3.6.1) Rabbitmq-server-3.6.1.exe
    3. Specific installation of the above two EXE files can be referenced in the following steps: http://jingyan.baidu.com/article/a17d5285173ce68098c8f2e5.html
After the installation is successful, the DOS command can be used to see if the installation is successful and starts normally, so CMD enters the following command:

--Locate the installation path to the RABBITMQ:


--The above command enter the Rabbitmqctl status after the carriage return, the following lump appears after the carriage is the installation no problem:


--Next we need to install Rabbitmqweb's management plug-in, then continue to enter the following command (Rabbitmq-plugins enable rabbitmq_management), enter the following output:


--At this point, the Web management interface can already be accessed via the http://127.0.0.1:15672/address, and the default account and password are guest. However, it may be necessary to re-use a new management account in practice. The following is a continuation of the command to create a new account and grant permissions to the administrator:

--View the default account list information (input: Rabbitmqctl,bat list_users):


--New account:


--Grant Administrator privileges (input:rabbitmqctl.bat set_permissions-p/Geffzhang " . *". * "". * "):


--Now that the installation process is complete, you can use the account login you just created to manage it.




Remark: The following is the official: http://www.rabbitmq.com/install-windows.html

Windows 64-bit RabbitMQ installation configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.