The problem of being unable to enter the management page when installing rabbitmq in docker

The problem of being unable to enter the management page when installing rabbitmq in docker

1. Environmental Preparation

  1. Tencent Cloud Server CENTOS 7 version
  2. Install Docker container

2. Start the installation

docker pull rabbitmq:management

Note: Why not install docker pull rabbitmq directly? Because after this is installed, you cannot directly access its management backend after opening the corresponding port. You need to open it with an additional command. This situation will be discussed later.

The container is running and the corresponding port is open

docker run -di --name=mycloud_rabbitmq -p 5671:5671 -p 5672:5672 -p 4369:4369 -p 15671:15671 -p 15672:15672 -p 25672:25672 rabbitmq:management

After mapping, you can directly access your management backend through the external network http://yourdomain:15672/

insert image description here

2.1 Solve the problem that the management backend cannot be opened after installation

Friends have installed docker ps on it and see that rabbitmq has started normally and the port is fine, but you still cannot open the management backend webpage. This is because the image you pulled was rabbitmq.
You executed this sentence:

docker pull rabbitmq
The management backend web page is not enabled by default, you need to enable it yourself

Then execute

docker run -di --name=mycloud_rabbitmq -p 5671:5671 -p 5672:5672 -p 4369:4369 -p 15671:15671 -p 15672:15672 -p 25672:25672 rabbitmq

Then execute

docker ps
docker exec -it image ID /bin/bash
rabbitmq-plugins enable rabbitmq_management

After that, you can visit the management backend website.

This is the end of this article about installing rabbitmq in docker and being unable to enter the management page. For more relevant content about installing rabbitmq in docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed operations of building RabbitMq's common cluster and mirror cluster with Docker
  • A detailed introduction to deploying RabbitMQ environment with docker
  • Two problems encountered when deploying rabbitmq with Docker
  • Docker deployment RabbitMQ container implementation process analysis
  • How to quickly install RabbitMQ in Docker
  • Docker installs and runs the rabbitmq example code
  • How to deploy rabbitmq cluster with docker
  • How to build a rabbitmq cluster environment with docker
  • Docker installation and configuration steps for RabbitMQ

<<:  HTML Basics: The basic structure of HTML

>>:  Detailed explanation of Vue's live broadcast function

Recommend

How to import js configuration file on Vue server

Table of contents background accomplish Supplemen...

Quickly get started with VUE 3 teleport components and usage syntax

Table of contents 1. Introduction to teleport 1.1...

WeChat applet + ECharts to achieve dynamic refresh process record

Preface Recently I encountered a requirement, whi...

MySQL 8.0.14 installation and configuration method graphic tutorial

This article records the installation and configu...

How to use js to determine whether a file is utf-8 encoded

Conventional solution Use FileReader to read the ...

Best way to replace the key in json object

JSON (JavaScript Object Notation, JS Object Notat...

Detailed explanation of how to upgrade software package versions under Linux

In the Linux environment, you want to check wheth...

How to view and optimize MySql indexes

MySQL supports hash and btree indexes. InnoDB and...

Solution for mobile browsers not supporting position: fix

The specific method is as follows: CSS Code Copy ...

Two ways to enable firewall in Linux service

There are two ways: 1. Service method Check the f...

MySQL fuzzy query statement collection

SQL fuzzy query statement The general fuzzy state...

Right align multiple elements in the same row under div in css

Method 1: float:right In addition, floating will ...

Flex layout makes adaptive pages (syntax and examples)

Introduction to Flex Layout Flex in English means...