RabbitMQ installation and operation

RabbitMQ install and run under Windows

1 , download Erlang :

http://www.erlang.org/downloads/19.2

2 , download the Windows version of RabbitMQ :

http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6.exe

3 , install and configure the environment variables:

Increased variable ERLANG_HOME C: \ Program Files \ erl8.2

path under Add    % ERLANG_HOME% \ bin

 

 

 

Increased variable RABBITMQ_BASE C: \ Program Files \ RabbitMQ     Server \ rabbitmq_server-3.6.6

 

 

 

path added under   % RABBITMQ_BASE% \ sbin;% RABBITMQ_BASE % \ ebin

 

 

 

4, start the service in the Start menu

 

 

 

5 , you can install directory sbin run rabbitmqctl.bat status detect whether the installation is successful

 

 

 

 

 

6, pages open end console

Next, rabbitmq-plugins.bat list view a list of installed plug-ins,

Then use rabbitmq-plugins.bat enable rabbitmq_management command to open the web version of the console.

Restart RabbitMQ service to take effect: NET NET STOP && Start RabbitMQ RabbitMQ

Enter in your browser  http: // localhost: 15672 / into the console, it's done

Use guest / guest login

 

 

 

RabbitMQ commonly used ports:

  client side communication ports: 5672      

  Management port: 15672  

   server between the internal communication port: 256,724,369

 

 

 

RabbitMQ installation under Linux

 

In Linux ( with CentOS7 for example ) installation RabbitMQ

 

1wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm 

 

2rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

 

3yum install epel-release

 

4yum install erlang

 

5wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm 

 

6yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm

 

 

 

 

 

 

 

 

 

When a failure occurs in the above illustration, like him to try several times. In particular installation epel-release and erlang when, because of the need to download large packages and a slower speed, there is a great probability of unsuccessful download, like him to try several times to ensure the successful installation and operation.

 

 

 

After the installation is complete

 

1service rabbitmq-server start

 

2service rabbitmq-server status

 

 

 

 

 

Common information

 

RabbitMQ common port: Client side communication ports: 5672       Management Port : 15672    Server between the internal communication port: 256,724,369

 

Such as port access can not occur, consider whether a firewall problem, you can use the following command to open the form or directly off the firewall:

 

firewall-cmd --permanent --add-port=15672/tcp

 

 

 

Run rabbitmqctl status appears Error: unable to connect to node rabbit @ controller: nodedown like several solutions consider the following questions:

 

1 , restart the service

 

  service rabbitmq-server stop

 

  service rabbitmq-server start

 

2 , check / var / lib / rabbitmq whether there are .erlang.cookie , not the new one, which enter a random string

 

3 , reinstall Service

 

4 , Baidu or Google it

 

Guess you like

Origin www.cnblogs.com/Soy-technology/p/11494922.html