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:
- 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.
- Monitoring Person (monitoring)
You can log in to the admin console and viewRABBITMQnode-related information(number of processes, memory usage, disk usage, etc.)
- 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).
- General Manager (Management)
you can only log in to the management console, you cannot see the node information, and you cannot manage the policy.
- Other
Unable to login to the management console, usually the average producer and consumer.
RABBITMQ installation and client-side simple and practical