How to install and use RabbitMQ

Source: Internet
Author: User
Tags message queue rabbitmq

RabbitMQ is an open-source implementation of AMQP (Advanced Message Queue) developed by erlang. The emergence of AMQP actually meets the needs of the masses. Although there are many public standards (such as cobar iiop or SOAP) in the world of synchronous messaging ), however, this is not the case in asynchronous message processing. Only large enterprises have some commercial implementations (such as Microsoft's MSMQ and IBM's Websphere MQ). Therefore, in, cisco, Redhat, iMatix, and others jointly developed the AMQP public standards.

RabbitMQ is a complete and reusable enterprise message system based on AMQP. By default, rabbitmq is used as the broker in django + celery.

Install

1. windows installation

Mainly for program testing.

Download and install erlang first, download address: http://www.erlang.org/download.html

Download and install rabbitmq after installation, download address: https://www.rabbitmq.com/install-windows.html

As with the installation steps of common programs, start the service in "rabbitmq server" in the start menu after the installation is complete.

2. ubuntu installation

Compile the source configuration file/etc/apt/sources. list and add the following content.

Deb http://www.rabbitmq.com/debian/ testing main

Add trusted public key

Wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
Sudo apt-key add rabbitmq-signing-key-public.asc

Install

Sudo apt-get update
Sudo apt-get install rabbitmq-server

Add username and password

By default, rabbitmq has a guest user, but it can only be accessed locally without a password. If rabbitmq is installed on other hosts, the user name and password must be used. The following command creates a user and a vhost.

Sudo rabbitmqctl add_user myuser mypassword
Sudo rabbitmqctl add_vhost myvhost
Sudo rabbitmqctl set_permissions-p myvhost myuser ".*"".*"".*"

You can use it after adding it. I am not familiar with this. django + celery + rabbitmq is enough for the time being.

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.