I. Environmental preparedness
RABBITMQ requires Erlang language support, so you need to install the Erlang language first
Two. Download
http://www.erlang.org/download/opt_src_17.3_tar.gz and unzip
Three. Installation
./configure--prefix=/home/ liyixiang /erlang
Note:
Could be an error.Configure:Error: No Curses library functions foundconfigure:Error: /bin/SH'/home/liyixiang/erlang/configure'failed forERTs
The reason is the lack of ncurses bag
Solution: under the Ubuntu system
Apt-cache Search ncurses
Apt-get Install Libncurses5-dev
Continue to install Erlang
? command: make make install ?
? four. Test Erlang ?
Enter/home/liyixiang/erlang, startErlTestErlangwhether the installation was successful.
Span style= "FONT-SIZE:18PX; margin:0px; padding:0px; Color:rgb (68, 68, 68); line-height:18px; Background-color:rgb (255, 255, 255); " > five. Configure the Erlang environment variable
-
modify file, add the following environment variable: (Vim profile i Insert Edit complete ESC exit wq! Force modify )
-
export path= $PATH:/usr/erlang/bin
-
source profile make file effective
Six. RABBITMQ installation configuration
Download http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.5/rabbitmq-server-generic-unix-3.3.5.tar.gz
Unzip into USR
modifying /etc/profile, adding environment variables
#set RABBITMQ Environment
Export path= $PATH:/usr/rabbitmq_server-3.3.5/sbin
Source profile makes the file effective
Note:
You may encounter a ./rabbitmq-server:line 86:erl:command not found
Modify rabbitmq_server-3.3.5/sbin/rabbitmq-server-3.3.5 file will export path= $PATH:/usr/erlang/bin can be configured on
Then start the ./rabbitmq-server.start!
Install RABBITMQ under Ubuntu