One Erlang installation
- 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
- Ken will be able to find the case of the package can not be found, directly yum install it!
two Simplejson installation
- CD/
- wget http://pypi.python.org/packages/source/s/simplejson/simplejson-Download Simplejson
- Tar zxvf simplejson-2.4.0.tar.gz Unzip the file
- CD Simplejson-2.4.0,python setup.py install. This is because Simplejson is dependent on the Python script
three RABBITMQ installation configuration
- There are many versions of RABBITMQ installed, and we use the generic UNIX version.
- CD/
- wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/rabbitmq-server-generic-unix-2.7.1.tar.gz Download RABBITMQ
- Tar zxvf rabbitmq-server-generic-unix-2.7.1.tar.gz-c/opt unzip to the specified folder
- Cd/opt, establishing a soft link ln-s rabbitmq-server-generic-unix rabbitmq
- CD rabbitmq/sbin,./rabbitmq-server-detached to enable background startup
- modifying/etc/profile, adding environment variables
- #set RABBITMQ Environment
- Export path= $PATH:/opt/rabbitmq/sbin
- Source profile makes the file effective
- Cd/opt/rabbitmq/sbin,./rabbitmqctl Stop shutdown RABBITMQ
- This completes the installation
- Enable Admin mode (manage MQ with Web page) cd/opt/rabbitmq/sbin/
- Execute./rabbitmq-plugin Enable Rabbitmq-management
- 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