<> one , install Erlang
<>1. download Erlang
download otp_src_21.3.8.21.tar.gz Installation package , And upload to the server
<>2. decompression
[root@localhost ~]# tar -zxvf otp_src_21.3.8.21.tar.gz
<>3. Enter the extracted file
[root@localhost ~]# cdotp_src_21.3.8.21
<>4. to configure
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads
-enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
<>5. Start installation compilation
[root@localhost otp_src_21.3.8.21]# make
[root@localhost otp_src_21.3.8.21]# make install
<>6. to configure erlang environment variable
stay /etc/profile Add at the end of profile /usr/local/erlang/bin
1.[root@localhost otp_src_21.3.8.21]# vim /etc/profile
2.root@localhost otp_src_21.3.8.21]# exportPATH=$PATH:/usr/local/erlang/bin
3.[root@localhost otp_src_21.3.8.21]# source /etc/profile # Make it effective
4.[root@localhost otp_src_21.3.8.21]# echo $PATH
<>7. Check whether the installation is successful
[root@localhost ~]# erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 5.10.4
<> two , install rabbitmq
<>1. download rabbitmq-server-3.6.16-1.el7.noarch.rpm
download rabbitmq Installation package , And upload to the server
Download address
2. install
[root@localhost rabbitmq]# rpm -ivh rabbitmq-server-3.6.16-1.el7.noarch.rpm
<>3. Start and initialize rabbitmq
#-detached Start on behalf of background daemon mode
[root@localhost rabbitmq]# rabbitmq-server -detached
<>4.rabbitmq Other commands
Start service :rabbitmq-server -detached
View status :rabbitmqctl status
Shut down service :rabbitmqctl stop
List roles :rabbitmqctl list_users
Enable management plug-ins
rabbitmq-plugins enable rabbitmq_management
<>5. If you log in remotely rabbitmq Problems encountered in management solution :User can only log in via localhost
Find this file rabbit.app
[root@localhost rabbitmq]# vim
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.16/ebin/rabbit.app
take :{loopback_users, [<<”guest”>>]},
Change to :{loopback_users, []},
reason :rabbitmq from 3.3.0 Start prohibition guest/guest Permission through division localhost External access
Technology
Daily Recommendation