Centos 6.4.How to install erlang&rabbitmq
This article mainly introduces how to install erlang&rabbitmq in Centos 6.4. it is very detailed and has a certain reference value. Friends who are interested must finish it!
1. Install erlang
1.1 for preparation, install the dependent library first
Yum-y install make gcc gcc-c++ kernel-devel M4 ncurses-devel openssl-devel yum install ncurses-devel
1.2 download erlang source code
Wget http://www.erlang.org/download/otp_src_R16B02.tar.gzcp otp_src_R16B02.tar.gz / usr/src/otp_src_R16B02.tar.gzcd / usr/srctar-xzvf otp_src_R16B02.tar.gz mv otp_src_R16B02 erlang_R16B
1.3 compilation and installation
Cd erlang_R16B/. / configure-- prefix=/usr/local/erlang-- with-ssl-- enable-threads-- enable-smp-support-- enable-kernel-poll-- enable-hipe-- without-javac / / do not compile without java, so remove java to avoid errors make & & make install / / install after compilation
1.4 configure environment variables
Vi / etc/profile ERL_HOME=/usr/local/erlang export PATH=$PATH:$ERL_HOME/bin
2 install 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/srccd / usr/srctar-xzvf rabbitmq-server-3.1.5.tar.gz
2.2 install dependent libraries
Yum-y install xmlto
Otherwise, it will compile and fail:
/ bin/sh: line 1: xmlto: command not found
2.3 compilation
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 / / compile rabbitmq to the / opt/mq/rabbitmq directory
2.4 install the web plug-in management interface
Cd / usr/local/rabbitmq/sbin mkdir / etc/rabbitmq/. / rabbitmq-plugins enable rabbitmq_management
View a list of plug-ins
. / rabbitmq-plugins list
2.5 Common commands
Start rabbitmq
. / rabbitmq-server-detached
Enter http://127.0.0.1:15672/ on the browser to log in to the administrative interface.
Using the login name and password is guest by default.
Close rabbitmq
. / rabbitmqctl stop above is all the contents of the article "how to install erlang&rabbitmq in Centos 6.4.Thank you for reading!" Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!