RabbitMQ Rookie installation, RabbitMQ initial contact AMQP installation, configuration Guide

Source: Internet
Author: User
Tags mkdir port number rabbitmq
RABBITMQ Installation: 1. RABBITMQ is based on Erlang, so you must first configure the Erlang environment. Install Erlang

Go to Erlang's website: http://www.erlang.org for download
There are two ways of installing:

1.1. Source Installation Method:

mkdir Erlang
cd Erlang
wget wget http://www.erlang.org/download/otp_src_18.0.tar.gz
tar-xzvf otp_src_ 18.0.tar.gz
cd otp_src_18.0.tar.gz
./configure--prefix=${erlang_home}  #./configure--prefix=/opt/ Erlang make do
install

#设置erlang环境变量
vim/etc/profile

erlang_home=/opt/erlang
PATH = $ERLANG _home/bin: $PATH
export erlang_home
export PATH

source/etc/profile

1.2.Package Installation

RPM-UVH http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # Installation epel:http:// Fedoraproject.org/wiki/epel
Yum Install erlang</div>
2. Installing RABBITMQ

into the RABBITMQ website to download, the same two installation methods

2.1 Source Installation Method

mkdir rabbitmq
cd rabbitmq
wget wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.3/ rabbitmq-server-generic-unix-3.5.3.tar.gz
TAR-XZVF rabbitmq-server-generic-unix-3.5.3.tar.gz
2.2 Package Installation
RPM--import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
Yum Install http://www.rabbitmq.com/ releases/rabbitmq-server/v3.0.4/rabbitmq-server-3.0.4-1.noarch.rpm

2.3 Start RABBITMQ
CD ${rabbitmq_home}
CD sbin
./rabbitmq-server start

2.4 Verifying that the RABBITMQ installation is successful

HTTP://${HOSTNAME}:15672/MGMT
 
if not accessible, RABBITMQ may not be enabled rabbitmq_management this plugin
can be used
Rabbitmq-plugins enable "Plugin-name" command enables one plugin  ##/rabbitmq-plugin enable Rabbitmq-managemen
 
Rabbitmq-plugins List View Supported plugin
if you use default to account login, execute the following two sentences, create a new account after the login:
./rabbitmqctl Add_user UserName PassWord
./rabbitmqctl set_user_tags User Administrator #这只权限
./rabbitmqctl set_permissions-p "/" UserName ". * "". * "". * "  #这只Vhost 
You can also see this article about user management:

http://blog.csdn.net/hepeng_8/article/details/46672811 3 RABBITMQ Configuration


In general, the default configuration for RABBITMQ is sufficient. If you want a special setting, there are two ways:
One is the environment variable configuration file rabbitmq-env.conf;
A configuration file that is configuration information rabbitmq.config;
Note that these two files are not by default and must be created yourself if necessary.
Rabbitmq-env.conf
The location of this file is deterministic and immutable, located in:/etc/rabbitmq directory (this directory needs to be created by itself).
The contents of the file include some of the environment variables of RABBITMQ, commonly used are:
#RABBITMQ_NODE_PORT =//Port number
#HOSTNAME =
Rabbitmq_nodename=mq
rabbitmq_config_file=//path of the configuration file
Rabbitmq_mnesia_base=/rabbitmq/data//path of the MNESIA database to be used
Rabbitmq_log_base=/rabbitmq/log//log's Path
Rabbitmq_plugins_dir=/rabbitmq/plugins//plug-in Path

For a specific list, see: Http://www.rabbitmq.com/configure.html#define-environment-variables
Rabbitmq.config
This is a standard Erlang configuration file. It must conform to the standards of the Erlang profile.

It has both a default directory and can be configured in the rabbitmq-env.conf file. on the real above how to use, the back also updated an article, the Java version:

http://blog.csdn.net/hepeng_8/article/details/46680937

Everyone can go to see, there are problems can add my QQ (154833488) or message.

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.