RabbitMQ Installation operation

Source: Internet
Author: User
Tags rabbitmq

Rabbitmq

MQ is all called the message queue, and Message Queuing (MQ) is an application-to-application communication method.

Applications communicate by reading and writing messages to and from the queue (data for the application), without requiring a dedicated connection to link them.

Message passing refers to the process of communicating between programs by sending data in a message, rather than by directly invoking each other, and directly invoking techniques such as remote procedure calls.


1, download and install RABBITMQ dependent;

# wget http://www.rabbitmq.com/releases/erlang/erlang-18.1-1.el6.x86_64.rpm

# RPM-IVH erlang-18.1-1.el6.x86_64.rpm


Install using the root user * * * *

# wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.3/rabbitmq-server-3.6.3-1.noarch.rpm

# RPM--import HTTPS://WWW.RABBITMQ.COM/RABBITMQ-RELEASE-SIGNING-KEY.ASC

# RPM-IVH rabbitmq-server-3.5.0-1.noarch.rpm


# service Rabbitmq-server Start

# Chkconfig Rabbitmq-server on

Detection status;

# RABBITMQCTL Status


2, edit the configuration file;

Open the Web Management plugin, and enable guest user login;

# Rabbitmq-plugins Enable Rabbitmq_management

# Cat/etc/rabbitmq/rabbitmq.config

[{rabbit, [{loopback_users, []}]}].

# Service Rabbitmq-server Restart

3. Port access:

SELinux and similar mechanisms can prevent RABBITMQ from binding ports. When this happens, RABBITMQ will not be able to start. Make sure that the following ports are open:

4369 (EPMD), 4369 (Erlang distribution)

5672, 5671 (AMQP 0-9-1 and TLS)

15672 (if the management plug-in is enabled)

61613, 61614 (if Stomp is enabled)

1883, 8883 (if MQTT is enabled)

You can also configure RABBITMQ to use a different port.

http://IP:port/to visit;

http://IP:15672/


4, user management;

A. Add a new user

Rabbitmqctl Add_user Username Password

B. Deleting a user

Rabbitmqctl Delete_user Username

C. Modify the user's password

Rabbitmqctl Change_password Username NewPassword

D. Viewing the list of current users

Rabbitmqctl list_users


5, User rights settings;

A. Setting user permissions

Rabbitmqctl set_permissions-p vhostpath User CONFP writep readp

B. View (specify Hostpath) permission information for all users

Rabbitmqctl list_permissions [-P Vhostpath]

C. Viewing permission information for a specified user

Rabbitmqctl list_user_permissions User

D. Clearing the user's permissions information

Rabbitmqctl clear_permissions [-P Vhostpath] User



Note

Official reference http://www.rabbitmq.com/install-rpm.html



This article is from the "Logs" blog, make sure to keep this source http://51log.blog.51cto.com/6076767/1828577

RabbitMQ Installation operation

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.