Installation and configuration of RABBITMQ under Linux

Source: Internet
Author: User
Tags rabbitmq

    1. RABBITMQ is based on Erlang, so you must first configure the Erlang environment.
    2. Download the latest Erlang installation package from Erlang's official website http://www.erlang.org/download.html, the version of Linux and MacOSX download is r15b01 Source File (72.0 MB)
    3. My is Mac OSX system so i downloaded the corresponding version of the installation package directly in HTTP://WWW.ERLANG-SOLUTIONS.COM/SECTION/132/DOWNLOAD-ERLANG-OTP, the province's own configuration and installed
    4. Then unzip the downloaded GZ package tar zxcf *.tar.gz
    5. CD into the extracted folder
    6. Execute./configure--prefix=/opt/erlang will start compiling the installation will be compiled to/opt/erlang and executed
    7. Make and make install
    8. After the compilation is complete, enter/opt/erlang and the ERL test Erlang is installed successfully.
    9. Modify the/etc/profile file to add the following environment variables:
    10. #set Erlang Environment
    11. Export path= $PATH:/opt/erlang/bin
    12. Source profile makes the file effective
    13. There may be cases where the package is not found, just go to yum install!

two RABBITMQ installation configuration

    There are many versions of the
    1. RABBITMQ installation, and we use the Generic unix version.
    2. cd /
    3. wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/ rabbitmq-server-generic-unix-3.5.6.tar.gz download RABBITMQ
    4. tar zxvf  Rabbitmq-server-generic-unix-3.5.6.tar.gz -c /opt unzip to the specified folder under
    5. cd /opt, creating a soft link ln -s  RABBITMQ-SERVER-GENERIC-UNIX RABBITMQ
    6. cd rabbitmq/sbin,./rabbitmq-server - Detached can implement background startup
    7. Modify/etc/profile, add environment variables
    8. #set  rabbitmq environment
    9. Export  path= $PATH:/opt/rabbitmq/sbin
    10. source profile make file effective
    11. cd /opt/rabbitmq/sbin,./ Rabbitmqctl stop Close RABBITMQ
    12. to complete the installation
    13. Enable administration (Manage MQ with Web page) cd/opt/rabbitmq/sbin/ 
    14. Execute./rabbitmq-plugin enable Rabbitmq-management
    15. and then access http://localhost:15672 
    16. The default user guest cannot access the Web management interface outside the local computer, you need to add users or modify the guest's default settings
      User's management reference: Http://my.oschina.net/hncscwc/blog/262246?p=
Four RABBITMQ configurationIn general, the default configuration for RABBITMQ is sufficient. If you want special settings, there are two ways: one is the configuration file rabbitmq-env.conf of the environment variable, the other is the configuration file rabbitmq.config of configuration information; Note that these two files are not available by default and must be created yourself if necessary.

Rabbitmq-env.conf the location of this file is deterministic and immutable, in the following:/ETC/RABBITMQ directory (this directory needs to be created by itself). The contents of the file include some of the RABBITMQ environment variables, commonly used are: #RABBITMQ_NODE_PORT =//Port number #hostname=rabbitmq_nodename=mqrabbitmq_config_file=//config text Path of the piece Rabbitmq_mnesia_base=/rabbitmq/data//The path of the MNESIA database that needs to be used Rabbitmq_log_base=/rabbitmq/log//log paths 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.

The contents of the file are described in: http://www.rabbitmq.com/configure.html#config-items

Installation and configuration of RABBITMQ under Linux

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.