Linux (CENTOS7) RabbitMq installation

       rabbitMQ is a complete, enterprise messaging system can take on the basis of standard AMQP protocol. It follows the open source Mozilla Public License Agreement, the use of industrial-grade Erlang implementation of the Message Queue (MQ) server, Rabbit MQ is based on the Erlang OTP platform.

 

1, the installation Erlang

        Because rabbitMQ is written in Erlang, so we first need to install Erlang

rpm -Uvh http://www.rabbitmq.com/releases/erlang/erlang-18.1-1.el7.centos.x86_64.rpm

2, mounting rabbitMQ-server

rpm -Uvh http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm

3, to see if the installation was successful

rpm -qa|grep rabbitmq

4, open rabbit-server

Open: Service rabbitmq- Server Start 
Close: Service RabbitMQ -server STOP

       So although we have rabbitmq services start properly, but we enter the ip browser of the physical machine: 15672 time, and can not connect, because we have not configured remote connections open and maintain plug-ins

5, view the status

rabbitmqctl status

6, installation maintenance command plug-ins

rabbitmq-plugins enable rabbitmq_management 

7, set the configuration file, and open the user remote access

cd /etc/rabbitmq
 
cp /usr/share/doc/rabbitmq-server-3.5.6/rabbitmq.config.example /etc/rabbitmq/
  
mv rabbitmq.config.example rabbitmq.config
 
vi /etc/rabbitmq/rabbitmq.config

       Amended as follows:

8, restart the rabbit-server service

service rabbitmq-server restart

9, login access

      Enter the ip in your browser: 15672 to the login page, the user name and password are guest

Guess you like

Origin www.cnblogs.com/kawhileonardfans/p/10966798.html