- RABBITMQ is based on Erlang, so you must first configure the Erlang environment.
- 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)
- 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
- Then unzip the downloaded GZ package tar zxcf *.tar.gz
- CD into the extracted folder
- Execute./configure--prefix=/opt/erlang will start compiling the installation will be compiled to/opt/erlang and executed
- Make and make install
- After the compilation is complete, enter/opt/erlang and the ERL test Erlang is installed successfully.
- Modify the/etc/profile file to add the following environment variables:
- #set Erlang Environment
- Export path= $PATH:/opt/erlang/bin
- Source profile makes the file effective
- 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
- RABBITMQ installation, and we use the Generic unix version.
- cd /
- wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/ rabbitmq-server-generic-unix-3.5.6.tar.gz download RABBITMQ
- tar zxvf Rabbitmq-server-generic-unix-3.5.6.tar.gz -c /opt unzip to the specified folder under
- cd /opt, creating a soft link ln -s  RABBITMQ-SERVER-GENERIC-UNIX RABBITMQ
- cd rabbitmq/sbin,./rabbitmq-server - Detached can implement background startup
- Modify/etc/profile, add environment variables
- #set rabbitmq environment
- Export path= $PATH:/opt/rabbitmq/sbin
- source profile make file effective
- cd /opt/rabbitmq/sbin,./ Rabbitmqctl stop Close RABBITMQ
- to complete the installation
- Enable administration (Manage MQ with Web page) cd/opt/rabbitmq/sbin/
- Execute./rabbitmq-plugin enable Rabbitmq-management
- and then access http://localhost:15672
- 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