Installing the Rabbit MQ Guide on Windows

Source: Internet
Author: User
Tags rabbitmq

RABBITMQ is an enterprise messaging system that is complete and can be taken on a standard based on the AMQP protocol. He follows the Mozilla Public License open source agreement. An industrial-grade Message Queuing (MQ) server implemented with Erlang.

Official station of RABBITMQ: http://www.rabbitmq.com/
AMQP (Advanced Message Queuing Protocol) is an application-layer protocol specification used by asynchronous messaging as a line-layer protocol, rather than an API (such as JMS), where AMQP clients can send and receive information regardless of the source of the message. The original purpose of AMQP is simply to provide the financial community with a message protocol that can collaborate with one another, and now the goal is to provide common building tools for the common Message Queuing architecture. Therefore, message-oriented middleware (MOM) systems, such as publish/subscribe queues, are not implemented as basic elements. Instead, by sending simplified AMQ entities, users are given the ability to build such entities. These entities are also part of the specification, forming a hierarchy at the top of the line layer protocol: the AMQP model. This model unifies the message pattern, such as the previously mentioned publish/subscribe, queue, transaction, and streaming data, and adds additional features such as easier to scale, content-based routing.

Install the Rabbit MQ Guide on Windows, preferably the Rabbit MQ Windows installation guides, which also includes access Rabbit using the. NET rabbitmq.client Nuget Package Example code for MQ.

Installing Rabbit MQ

Rabbit MQ is built on the powerful Erlang OTP platform, so installing Rabbit MQ is premised on the installation of Erlang. Download the installation from the following two connections 3.2.3 version:

    1. Download and install ERALNG OTP for Windows (VR16B03)
    2. Run Install Rabbit MQ Server Windows Installer (v3.2.3)

The default installed rabbit MQ listening port is 5672

Activate Rabbit MQ ' s Management Plugin

With the Rabbit MQ Management plug-in, you can better visualize the status of the Rabbit MQ Server instance, which you can activate at the command line using the following command:

"C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.2.3\sbin\rabbitmq-plugins.bat" enable rabbitmq_management

要重启服务才能生效,可以执行

net stop RabbitMQ && net start RabbitMQ

Below we use the Rabbitmqctl Console command (located in C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>) to create a user, password, bind permission, and so on.

Microsoft Windows [version 6.3.9600]
(c) Microsoft Corporation. All rights reserved.

Directory of the C:\Program Files (x86) \RABBITMQ Server\rabbitmq_server-3.2.3\sbin

2014/11/01 15:04 <DIR>.
2014/11/01 15:04 <DIR>.
2014/01/23 22:57 817 Rabbitmq-echopid.bat
2014/01/23 22:57 1,900 Rabbitmq-plugins.bat
2014/01/23 22:57 4,356 Rabbitmq-server.bat
2014/01/23 22:57 7,123 Rabbitmq-service.bat
2014/01/23 22:57 1,621 Rabbitmqctl.bat
5 Files 15,817 bytes
2 Directories 96,078,618,624 bytes available

C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>rabbitmqctl.ba
T list_users
Listing users ...
Guest [Administrator]
... done.

C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>rabbitmqctl.ba
T list_vhosts
Listing vhosts ...
/
... done.

C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>rabbitmqctl.ba
T Add_user Geffzhang [email protected]
Creating user "Geffzhang" ...
... done.

C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>rabbitmqctl.ba
T list_users
Listing users ...
Geffzhang []
Guest [Administrator]
... done.

C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>rabbitmqctl.ba
T set_user_tags Geffzhang Administrator
Setting tags for the user "Geffzhang" to [Administrator] ...
... done.

C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>rabbitmqctl.ba
T list_users
Listing users ...
Geffzhang [Administrator]
Guest [Administrator]
... done.

Use your browser http://localhost:15672 to open the admin console that accesses rabbit MQ and use the account you just created to log in to the system:

Installing the Rabbit MQ Guide on Windows

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.