Deploy RABBITMQ on CentOS 6.5

Source: Internet
Author: User
Tags openssl rabbitmq

Recent projects to use middleware, after selection, to confirm the deployment of RABBITMQ.

Server environment: CentOS 6.5, PHP 5.6 Users: Root

RABBITMQ is developed using Erlang, so you need to install Erlang before installing RABBITMQ, a software project developed by Ericsson that downloads Erlang's installation files on the http://erlang.org/download/Web site, Select the latest version, I chose the 19.3 version.

Run the command directly on the Linux server wget http://erlang.org/download/otp_src_19.3.tar.gz after downloading, extract the source file: TAR-XZVF otp_src_19.3.tar.gz

Before compiling and installing Erlang, you will need to install NCURSES,UNIXODBC and so on, or you may compile an error

Yum-y install make ncurses-devel gcc gcc-c++ unixodbc unixodbc-devel OpenSSL openssl-devel

The above preparations are complete, and the following starts the installation of Erlang

CD otp_src_19.3 into the extracted source file directory

./configure--prefix=/usr/local/erlang--enable-smp-support--enable-threads--ENABLE-SCTP--enable-kernel-poll- Enable-hipe--with-ssl

The parameters used in the specific compilation installation are explained as follows:

--prefix Specify the installation directory
--enable-smp-support enable symmetric multi-processing support (symmetric multi-processing symmetric multi-processing structure)
--enable-threads Enable asynchronous thread support
--ENABLE-SCTP enable streaming Control protocol support (stream control transmission Protocol, stream-controlled transport protocol)
--enable-kernel-poll Enable Linux kernel poll
--enable-hipe Enable High-performance Erlang (High performance Erlang)
--WITH-SSL Using SSL Packets

Normal above steps do not error the situation, directly under the operation

Make & make install starts installing Erlang

Setup is complete, you need to configure environment variables,

Edit environment variable File

Vim/root/.bash_profile

Add the following content

Path= $PATH:/usr/local/erlang/bin
Export PATH

When saved, activates the current environment variable

Source/root/.bash_profile

Above is just the installation of Erlang that completes the RABBITMQ running environment, the following begins the formal RABBITMQ installation

First to RABBITMQ website download installation, download the address Http://www.rabbitmq.com/releases/rabbitmq-server

The official website provides three kinds of installation files one is rpm, two source code files, three compile good source files

To facilitate the proposal to download the latest version of the compiled source file directly Rabbitmq-server-generic-unix-3.6.11.tar.xz

After the download, the direct decompression, decompression will be the entire directory to take into account the/USR/LOCAL/RABBITMQ

/urs/local/rabbitmq/sbin/rabbitmq-server & Operation RABBITMQ

/urs/local/rabbitmq/sbin/rabbitmq-plugins Enable rabbitmq_management Install Web Management plug-in

/urs/local/rabbitmq/sbin/rabbitmqctl Add_user Admin 1qaz2wsx! Add Web Admin user

/urs/local/rabbitmq/sbin/rabbitmqctl set_user_tags Admin administrator adds added users to the Administrators group

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.