Installation and configuration of RABBITMQ under Linux

Source: Internet
Author: User
Tags python script rabbitmq

One Erlang installation

    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. Ken will be able to find the case of the package can not be found, directly yum install it!

two Simplejson installation

    1. CD/
    2. wget http://pypi.python.org/packages/source/s/simplejson/simplejson-Download Simplejson
    3. Tar zxvf simplejson-2.4.0.tar.gz Unzip the file
    4. CD Simplejson-2.4.0,python setup.py install. This is because Simplejson is dependent on the Python script
three RABBITMQ installation configuration
    1. There are many versions of RABBITMQ installed, 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-2.7.1.tar.gz Download RABBITMQ
    4. Tar zxvf rabbitmq-server-generic-unix-2.7.1.tar.gz-c/opt unzip to the specified folder
    5. Cd/opt, establishing a soft link ln-s rabbitmq-server-generic-unix rabbitmq
    6. CD rabbitmq/sbin,./rabbitmq-server-detached to enable background startup
    7. modifying/etc/profile, adding environment variables
    8. #set RABBITMQ Environment
    9. Export path= $PATH:/opt/rabbitmq/sbin
    10. Source profile makes the file effective
    11. Cd/opt/rabbitmq/sbin,./rabbitmqctl Stop shutdown RABBITMQ
    12. This completes the installation
    13. Enable Admin mode (manage MQ with Web page) cd/opt/rabbitmq/sbin/
    14. Execute./rabbitmq-plugin Enable Rabbitmq-management
    15. Then visit http://localhost:55672
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

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.