RabbitMq Windows installation

Source: Internet
Author: User
Tags rabbitmq

Refer to the official website:

Http://www.rabbitmq.com/install-windows-manual.html

Http://www.rabbitmq.com/install-windows.html

I. Installation of Erlang

Rabbit MQ is built on the powerful Erlang OTP platform, so installing Rabbit MQ is premised on the installation of Erlang.

Download and install ERALNG OTP for Windows (otp_win64_20.0)

Second, set environment variables

Add the System environment variable (also check the normal installation):

Have the best, no words to add manually.

Third, installation RABBITMQ

Download and run the install Rabbit MQ Server Windows Installer (v3.6.10)

The default installed rabbit MQ listening port is 5672

Iv. Configuration

1. Activate rabbit MQ ' s Management Plugin (C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin\ Rabbitmq-plugins.bat)

command: rabbitmq-plugins Enable Rabbitmq_management

The service must be restarted to take effect.

Use the browser to open the Admin console for http://localhost:15672 access to rabbit MQ (the default user is guest, password: guest)

2. using the RABBITMQCTL console command (located in C:\Program Files (x86) \RABBITMQ server\rabbitmq_server-3.2.3\sbin>)

    • View the list of users

Rabbitmqctl.bat list_users

    • Add Users

Rabbitmqctl.bat Add_user [username] [Password]

    • Delete User

Rabbitmqctl.bat Delete_user [Username]

    • Modify User Password

Rabbitmqctl.bat Change_password [username] [NewPassword]

    • Set up roles

Rabbitmqctl.bat set_user_tags [username] [Tag1],[tag2] ...

Currently there are several tags,

1) Super Admin (Administrator)

You can access the admin console (with management plugin enabled) to view all the information and to operate on the user, policy.

2) monitor (monitoring)

Login to the admin console (with management plugin enabled), while you can view information about the RABBITMQ node (number of processes, memory usage, disk usage, etc.)

3) Strategy makers (policymaker)

You can log in to the management console (with management plugin enabled) and manage the policy. However, you cannot view information about the node (the part that is identified by the red box).

4) General Manager (Management)

You can only log in to the administration console (with management plugin enabled), you cannot see the node information, and you cannot manage the policy.

5) Other

Unable to log on to the admin console.

As an explanation of the various roles on the official website:

Tag

Capabilities

(None)

No access to the management plugin

Management

Anything the user could do via AMQP plus:

  • List virtual hosts to which they can log in via AMQP
  • View all queues, exchanges and bindings in "their" virtual hosts
  • View and close their own channels and connections
  • View "Global" statistics covering all their virtual hosts, including activity by other users within them

PolicyMaker

Everything "management" can plus:

  • View, create and delete policies and parameters for virtual hosts to which they can log in via AMQP

Monitoring

Everything "management" can plus:

  • List all virtual hosts, including ones they could not log on to via AMQP
  • View other users ' s connections and channels
  • View Node-level data such as memory use and clustering
  • View truly global statistics for all virtual hosts

Administrator

Everything "policymaker" and "monitoring" can plus:

  • Create and delete virtual hosts
  • View, create and delete users
  • View, create and delete permissions
  • Close other users ' s connections

There are other commands, please check it when needed.

Five, the installation process encountered problems

1. The following error occurred when activating rabbit MQ ' s Management plugin:

Applying plugin configuration to [email protected] failed.
* Could not contact node [email protected]
Changes would take the effect at broker restart.
* Options:--online-fail if broker cannot becontacted.
--offline-do Nottry to the contact broker.

On the Internet to find the following information, the machine has done the following operation success, specifically, which operation is not very clear:

    • Synchronize Erlang Cookies

What to do: Sync C:\WINDOWS\.erlang.cookie to RABBITMQ start users such as Win10:c:\users\%username%\.erlang.cookie

    • Uninstalling RABBITMQ Service Reinstallation

Rabbitmq-servicestop

Rabbitmq-serviceremove

Rabbitmq-serviceinstall

Rabbitmq-servicestart

RabbitMq Windows installation

Related Article

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.