In the installation of mysql/mongo/redis/nodejs/python environment, such as the RabbitMQ is undoubtedly a experience let me the most is not smooth, its installation method, to make what signature verification before download, online tutorials written half a year ago, also don’t work too much, I’ll document the installation.

To make a long story short, I shot it straight and clear.

Install Erlang. RabbitMQ is written in this language

Wget HTTP: / / http://erlang.org/download/otp_src_22.0.tar.gz

(2) unpack the installation package, this is not screenshot:

The tar - ZXVF otp_src_22. 0. Tar. Gz

③ Install the tools for building the Erlang language, including Java

yum install -y make gcc gcc-c++ m4 openssl openssl-devel ncurses-devel unixODBC unixODBC-devel java java-devel



Then operate:

./configure --prefix=/usr/local/erlang

(4) build

make && make install

⑤ Verify that the operation is successful:

erl

The Kanban version number indicates successful configuration

Install RabbitMQ to get the install package

Wget HTTP: / / http://www.rabbitmq.com/releases/rabbitmq-server/v3.7.16/rabbitmq-server-generic-unix-3.6.1.tar.xz

(2) unpack the installation package this is not screenshot:

Xz tar-xvf rabbitmq-server-generic-unix-3.7.16.tar.xz tar-xvf rabbitmq-server-generic-unix-3.7.16.tar

Configure environment variables

vi /etc/profile
#set rabbitmq environment
export PATH=$PATH:/usr/local/rabbitmq/sbin

⑥ Overloaded environment variable configuration

source /etc/profile

All landowners started the RabbitMQ

-detached rabbitMQ: detached rabbitMQ: -detached is the background daemon mode to start.

Then type:

rabbitmqctl status

The following message indicates successful startup:

Enable plugins for web interface management

rabbitmq-plugins enable rabbitmq_management

There are a few finishing touches, configuring the cloud server firewall open ports, and guest user to the RabbitMQ configuration, otherwise can only accept localhost access, enter public IP or domain name is unable to login, and account access by default, the modified changes, there is not much.

See the link: https://blog.csdn.net/yin7678… Have an other installations, look this simple than me, but I didn’t try, you can try: https://www.jianshu.com/p/510…