RabbitMQ installation process and RabbitMQ Installation Process

Source: Internet
Author: User

RabbitMQ installation process and RabbitMQ Installation Process

Original article reprinted please indicate the source: @ cosi, http://zeeman.cnblogs.com

Some installation tutorials on the Internet are cumbersome. In fact, you only need two RPM packages to complete the deployment of one instance in a few minutes.

Preparation
Download Erlang package: http://www.rabbitmq.com/releases/erlang/
Download RabbitMQ: http://www.rabbitmq.com/install-rpm.html

 

Import the signature. The signature is used to verify that the rpm has been modified. It can only be installed with a warning.
Rpm -- import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc

 

Install
Rpm-ivh erlang-17.4-1.el6.x86_64.rpm
Rpm-ivh rabbitmq-server-3.5.1-1.noarch.rpm

 

Self-starting
Chkconfig rabbitmq-server on

 

Create a data directory. Attach the disk to the data directory.
Mkdir/opt/kit/rabbitmq/data/db-p
Mkdir/opt/kit/rabbitmq/data/logs-p
Chmod 777/opt/kit/rabbitmq/data/logs
Chmod 777/opt/kit/rabbitmq/data/db

 

Configure and use our data directory for easy maintenance
Vi/etc/rabbitmq/rabbitmq-env.conf

Modify the following content
RABBITMQ_MNESIA_BASE =/opt/kit/rabbitmq/data/db
RABBITMQ_LOG_BASE =/opt/kit/rabbitmq/data/logs

 

Allow the guest to log on from another machine. By default, the management website does not allow the guest to log on remotely.
Vi/etc/rabbitmq. config
The filling content is (note the points at the end of the content ):
[{Rabbit, [{loopback_users, []}].

 

Number of connections of the tuning System:
Vi/etc/security/limits. conf
Input
Rabbitmq hard nofile 65535
Rabbitmq soft nofile 65535

 

Start the service
Service rabbitmq-server start

 

Open Management plug-in
Rabbitmq-plugins enable rabbitmq_management

Now you can log on to the website. A single node is successfully installed.

Logon address: http: // yourserver: 15672/
Username: guest
Password: guest

 

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.