RabbitMQ Linux (Redhat6.5) installation (ii)

Source: Internet
Author: User
Tags create directory rabbitmq

I. Installation of Erlang

Since the RABBITMQ Linux operating environment requires an Erlang environment, it is necessary to install Erlang first;

1. Erlang Download:

http://erlang.org/download/(i downloaded the otp_src_R16B.tar.gz version)

2. Check the dependency package:

Make GCC gcc-c++ kernel-devel M4 ncurses-devel openssl-devel tk unixODBC unixodbc-devel xmlto glibc MPFR
Use Rpm-qa MAKE/GCC and so on to check whether it is installed;
Use RPM-IVH MAKE/GCC and so on (--nodeps--force) ignore dependent forced installation

      For example: RPM-IVH gcc-omitted. RPM--nodeps--force

Install the dependency package for OpenSSL (: http://distfiles.macports.org/openssl/)

      TAR-ZVXF openssl-1.0.1s.tar.gz

      CD Openssl-1.0.1s

Compilation:./config--prefix=/usr/local/openssl

Perform installation: Make&& make install

3. Installing Erlang:

Create directory:Mkdir/usr/local/erlang
Enter the cd/usr/src , place the installation package in the directory, and unzip the TAR-XVF otp_src_R16B.tar.gz

Compile:./configure--prefix=/usr/local/erlang--with-ssl=/usr/local/openssl--enable-threads--enable-smp-support- -enable-kernel-poll--enable-hipe--without-javac
Perform installation: Make&& make install
To configure environment variables:
      vi/etc/profile (enter content below)
        Erl_home=/usr/local/erlang
Export path= $PATH: $ERL _home/bin

      source/etc/profile (make configuration Effective)
To test Erlang, command line enter the following command:
      Erl

PS: I had this problem during the installation,     checking for C compiler default output file name ... Configure:error:c compiler cannot create executables see ' CONFIG.L OG ' for more details. (Please click on the solution)

Second, install rabbitmq:1, download RABBITMQ :

http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.8/(i downloaded the installation is 3.5.8 version)

2. Compile and install:

Decompression:TAR-XZVF rabbitmq-server-3.5.8.tar.gz
CD rabbitmq-server-3.1.5
    Compiling: make
    Install: Makeinstall TARGET_DIR=/USR/LOCAL/RABBITMQ sbin_dir=/usr/local/rabbitmq/sbin man_dir=/usr/local/rabbitmq/ Mans   

3. Install WebUI Access plugin:

    Cd/usr/local/rabbitmq/sbin
mkdir/etc/rabbitmq/
Activating plugins:./rabbitmq-plugins Enable Rabbitmq_management


Start:./rabbitmq-server Start &
Close:./rabbitmqctl Stop
View the list of plugins:./rabbitmq-plugins List
View the list of users: ./rabbitmqctl list_users
Add User: ./rabbitmqctl add_user Admin Admin
Set label for User:./rabbitmqctl set_user_tags Admin Administrator
Set the license for the user:./rabbitmqctl set_permissions-p "/" admin " . *" ". *". * "

Success:

    

Copyright NOTICE: This article for Bo Master original article, reproduced please indicate the source, thank you!

RabbitMQ Linux (Redhat6.5) installation (ii)

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.