1.0 Pre-installation script file for Erlang
-
https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | command curl – s sudo bash
-
The results of
Installation of 2.0 Erlang
- code
yum install erlang
- 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
- 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
- The installation
The RPM - the ivh the rabbitmq server - 3.8.14-1. El7. Noarch. RPM
Configure the RabbitMQ
- Creating a Configuration File
https://github.com/rabbitmq/rabbitmq-server/blob/master/deps/rabbit/docs/rabbitmq.conf.example
Copy the configuration in the link2. Enable remote
loopback_users.guest = false
Copy the code
- Installing a plug-in
rabbitmq-plugins enable rabbitmq_management
Copy the code
- Powered up
chkconfig rabbitmq-server on
Copy the code
- Start the
service rabbitmq-server start
Copy the code
- Shut down
service rabbitmq-server stop
Copy the code
- Access authentication
http://IP:15672/ Username: guest Password: guestCopy the code