1.0 Pre-installation script file for Erlang

  1. https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | command curl – s sudo bash

  2. The results of

Installation of 2.0 Erlang

  1. code

yum install erlang

  1. The results of

3. After Erlang is installed, run the erl command to check iterl

4. Version of Erlangyum list | grep erlang

Install the RabbitMQ Server

[root@localhost ~]# rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
[root@localhost ~]# rpm --import https://packagecloud.io/gpg.key
Copy the code

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
Copy the code
  1. Install soCAT

Rabbitmq-server-3.8.12-1.el7.noarch need yum install socat 2. Rabbitmq public signing key

Warning: Rabbitmq-server-3.8.14-1. El7.noarch. RPM: Header V4 RSA/SHA256 Signature, key ID 6026DFca: NOKEY error: rabbitmq-server-3.8.14-1. Failed dependencies: Socat is needed by rabbitmq-server-3.8.14-1. El7.noarch [root@localhost ~]# RPM --import https://www.rabbitmq.com/rabbitmq-release-signing-key.ascCopy the code
  1. The installation

The RPM - the ivh the rabbitmq server - 3.8.14-1. El7. Noarch. RPM

Configure the RabbitMQ

  1. Creating a Configuration File

https://github.com/rabbitmq/rabbitmq-server/blob/master/deps/rabbit/docs/rabbitmq.conf.exampleCopy the configuration in the link2. Enable remote

loopback_users.guest = false
Copy the code
  1. Installing a plug-in
rabbitmq-plugins enable rabbitmq_management
Copy the code
  1. Powered up
chkconfig rabbitmq-server on
Copy the code
  1. Start the
service rabbitmq-server start
Copy the code
  1. Shut down
service rabbitmq-server stop
Copy the code
  1. Access authentication
http://IP:15672/ Username: guest Password: guestCopy the code