RABBITMQ installation and client-side simple and practical

Source: Internet
Author: User
Tags disk usage rabbitmq

The main content of this article is the installation steps of RABBITMQ "installation on Windows system and Linux" and the simple use of the client.

1. Download

: http://www.rabbitmq.com/download.html

2. Install the 2.1 installation on Windowsinstallation Erlang

Download Erlang: Http://www.erlang.org/download/otp_win64_17.3.exe

Installation:

Erlang installation is complete.

2.2 Installation Installing RabbitMQ

RABBITMQ installation is complete.

Start, stop, reinstall, and so on.

2.3 Enabling Administrative Tools

First step: Click on the Command window to open RABBITMQ.

Step Two: Enter the command rabbitmq-plugins enable Rabbitmq_management

This command means to install the RABBITMQ plugin.

Step three: Test whether the installation was successful.

Method: Access Address:http://127.0.0.1:15672/

Default account: Guest/guest

3. Install on Linux

3.1 Installing Erlang

Add Yum Support

cd/usr/local/src/

mkdir RABBITMQCD RABBITMQwget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpmRPM-UVH erlang-solutions-1.0-1.noarch.rpmrpm--import HTTP://PACKAGES.ERLANG-SOLUTIONS.COM/RPM/ERLANG_SOLUTIONS.ASCsudo yum install Erlang3.2 Installing RABBITMQUploadrabbitmq-server-3.4.1-1.noarch.rpmfiles to/usr/local/src/rabbitmq/Installation:RPM-IVH rabbitmq-server-3.4.1-1.noarch.rpmseveral common commands:Service Rabbitmq-server StartService Rabbitmq-server StopService Rabbitmq-server Restartchkconfig rabbitmq-server on//Set power On self-startTo set the configuration file:CD/ETC/RABBITMQcp/usr/share/doc/rabbitmq-server-3.4.1/rabbitmq.config.example/etc/rabbitmq/MV Rabbitmq.config.example Rabbitmq.configTo set user remote access:Vi/etc/rabbitmq/rabbitmq.configremove the comma from the backOpen the Web Interface management tool rabbitmq-plugins Enable Rabbitmq_managementService Rabbitmq-server Restart Firewall Open 15672 port/sbin/iptables-i input-p tcp--dport 15672-j ACCEPT/etc/rc.d/init.d/iptables Save4, the client's brief introduction

1, the introduction of the interface

Note Set up the virtual host with the add user this block.

Virtual host is actually a virtual concept, similar to the rights control group, there can be a number of exchange and queue in one virtual host, but the minimum granularity of permission control is virtual host

There are several user roles:
    1. Super Admin (Administrator)
You can log in to the admin console to View all the information, and you can access the user, policy(Policy)to operate.
    1. Monitoring Person (monitoring)
You can log in to the admin console and viewRABBITMQnode-related information(number of processes, memory usage, disk usage, etc.)
    1. Strategy Makers (policymaker)
Login to the admin console, at the same time canPolicyto manage. But unable to view information about the node(the part of the Red box logo).
    1. General Manager (Management)
you can only log in to the management console, you cannot see the node information, and you cannot manage the policy.
    1. Other
Unable to login to the management console, usually the average producer and consumer.

RABBITMQ installation and client-side simple and practical

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.