The environment

download

shell> mkdir /rabbitmq
shell> cd /rabbitmq
shell>Wget HTTP: / / www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm
shell>Wget HTTP: / / http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm
shell>Wget HTTP: / / www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm
Copy the code

Note: The installation package downloaded here is not the same as that installed below. Do not copy it directly

The installation

shell>The RPM - the ivh Erlang - 18.3-1. El7. Centos. X86_64. RPM
shell> yum -y install tcp_wrappers
shell>The RPM - the ivh socat 1.7.3.2-1.1. El7. X86_64. RPM
shell>The RPM - the ivh the rabbitmq server - 3.6.5-1. Noarch. RPM
shell> firewall-cmd --zone=public --add-port=15672/tcp --permanent
shell> firewall-cmd --zone=public --add-port=5672/tcp --permanent
shell> firewall-cmd --reload
Copy the code

Note: tcp_wrappers are not required. Install tcp_wrappers when socat fails. 15672 is the RabbitMQ management console port, and 5672 is the RabbitMQ server port.

Enabling the Management Console

shell> rabbitmq-plugins enable rabbitmq_management
shell>Vim/usr/lib/rabbitmq/lib/rabbitmq_server - 3.6.5 ebin/rabbit. The appChange {loopback_users, [<<"guest">>]} to {loopback_users, [guest]}Copy the code

Note: The failed in the figure is ignored. The console plug-in is installed successfully

Start the

shell> service rabbitmq-server start
shell> service rabbitmq-server stop
shell> service rabbitmq-server restart
Copy the code

landing

Address: http://192.168.168.10:15672/ account: guest/guestCopy the code

The above content by my test success, share, welcome to take.