1. Install erlang
1.1 preparatory work, the first dependent libraries
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel yum install ncurses-devel
1.2 Download erlang Source
wget http://www.erlang.org/download/otp_src_R16B02.tar.gz cp otp_src_R16B02.tar.gz /usr/src/otp_src_R16B02.tar.gz cd /usr/src tar -xzvf otp_src_R16B02.tar.gz mv otp_src_R16B02 erlang_R16B
1.3 compile and install
erlang_R16B CD / ./configure --prefix = / usr / local / Erlang---with --enable-SSL Threads --enable---enable-Kernel SMP-Support---enable-poll the HIPE --without-the javac // do not compile java, java remove it to avoid mistakes make && make install after // compile and install
1.4 Configuration Environment Variables
vi /etc/profile ERL_HOME=/usr/local/erlang export PATH=$PATH:$ERL_HOME/bin
2 Installation rabbitmq
2.1 Download
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5.tar.gz cp rabbitmq-server-3.1.5.tar.gz /usr/src cd /usr/src tar -xzvf rabbitmq-server-3.1.5.tar.gz
2.2 dependent libraries
yum -y install xmlto
Otherwise it will not compile by:
/bin/sh: line 1: xmlto: command not found
2.3 compiler
cd rabbitmq-server-3.1.5 make make install TARGET_DIR=/usr/local/rabbitmq SBIN_DIR=/usr/local/rabbitmq/sbin MAN_DIR=/usr/local/rabbitmq/man //将rabbitmq编译到/opt/mq/rabbitmq目录
2.4 Installing the web plug-in management interface
cd /usr/local/rabbitmq/sbin mkdir /etc/rabbitmq/ ./rabbitmq-plugins enable rabbitmq_management
View the list of plugins
./rabbitmq-plugins list
2.5 Common Commands
Start rabbitmq
./rabbitmq-server -detached
Enter http://127.0.0.1:15672/ login management interface in the browser
Using the login name and password for the default user name is considered a guest
Close rabbitmq
./rabbitmqctl stop
1.1 preparatory work, the first dependent libraries
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel yum install ncurses-devel
1.2 Download erlang Source
wget http://www.erlang.org/download/otp_src_R16B02.tar.gz cp otp_src_R16B02.tar.gz /usr/src/otp_src_R16B02.tar.gz cd /usr/src tar -xzvf otp_src_R16B02.tar.gz mv otp_src_R16B02 erlang_R16B
1.3 compile and install
erlang_R16B CD / ./configure --prefix = / usr / local / Erlang---with --enable-SSL Threads --enable---enable-Kernel SMP-Support---enable-poll the HIPE --without-the javac // do not compile java, java remove it to avoid mistakes make && make install after // compile and install
1.4 Configuration Environment Variables
vi /etc/profile ERL_HOME=/usr/local/erlang export PATH=$PATH:$ERL_HOME/bin
2 Installation rabbitmq
2.1 Download
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5.tar.gz cp rabbitmq-server-3.1.5.tar.gz /usr/src cd /usr/src tar -xzvf rabbitmq-server-3.1.5.tar.gz
2.2 dependent libraries
yum -y install xmlto
Otherwise it will not compile by:
/bin/sh: line 1: xmlto: command not found
2.3 compiler
cd rabbitmq-server-3.1.5 make make install TARGET_DIR=/usr/local/rabbitmq SBIN_DIR=/usr/local/rabbitmq/sbin MAN_DIR=/usr/local/rabbitmq/man //将rabbitmq编译到/opt/mq/rabbitmq目录
2.4 Installing the web plug-in management interface
cd /usr/local/rabbitmq/sbin mkdir /etc/rabbitmq/ ./rabbitmq-plugins enable rabbitmq_management
View the list of plugins
./rabbitmq-plugins list
2.5 Common Commands
Start rabbitmq
./rabbitmq-server -detached
Enter http://127.0.0.1:15672/ login management interface in the browser
Using the login name and password for the default user name is considered a guest
Close rabbitmq
./rabbitmqctl stop