Install Erlang and RABBITMQ on Linux under Installation Erlang
Download Erlang installation package
Http://erlang.org/download/otp_src_20.3.tar.gz
Upload to the server TMP directory and go to the TMP directory for installation.
# cd/tmp# mkdir-p/usr/local/erlang# tar-xzvf otp_src_20.1. tar.gz# cd otp_src_20.1#./configure--prefix=/usr/l Ocal/erlang--with-ssl--enable-threads--enable-smp-support--enable-kernel-poll--enable-hipe--without-javac# Make-j8# make install
- Setting environment variables
# Vim/etc/profile
At the end, add the following:
#set Erlang Environment
Export paht= $PATH:/usr/local/erlang/bin
- Make environment variables effective
# Source/etc/profile
- Test whether Erlang is available and whether the variable is valid
# Erl
Show the following instructions to take effect
Installing RABBITMQ
Download Rabbitmq-server installation package
Http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-generic-unix-3.6.15.tar.xz
- Upload to the server TMP directory and go to the TMP directory for installation.
# tar xvf rabbitmq-server-generic-unix-3.6.15tar.xz# mv Rabbitmq_server-3.6.15/USR/LOCAL/RABBITMQ
- Setting environment variables
# vim/etc/Profileat the end, add the following: #set RabbitMQ environmentexport paht= $PATH:/usr/local/rabbitmq/sbin
- Make environment variables effective
# Source/etc/profile
- Enable the Web management plug-in
# cd/usr/local/rabbitmq/sbin View plugin list #. /rabbitmq-plugins list#./rabbitmq-plugins Enable Rabbitmq_management
- Running in the background
#./rabbitmq-server-detached
- OK, here RABBITMQ has been configured, can be started:
1 Let's take a look at RABBITMQ's default listener port 5672 2 #netstat- Tnlp|grep 5672 3 best we can enter HTTP://IP on the browser : 15672/Login Admin interface 4 Use the login username and password by default to guest
- Adding users and virtual machines
Username password
such as:./rabbitmqctl add_user Admin 123456
User Administrator
Admin Administrator
Vhostname
Admin_vhost
Vhostname username ".*" ".*" ".*"
admin_vhost Admin ".*" ".*" ".*"
Installing Erlang and RABBITMQ under Linux