Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker installs and runs the instance code of rabbitmq

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Pull the image:

[mall@VM_0_7_centos ~] $sudo docker pull rabbitmq:3.7.15 [sudo] password for mall: 3.7.15: Pulling from library/rabbitmq5b7339215d1d: Pull complete 14ca88e9f672: Pull complete a31c3b1caad4: Pull complete b054a26005b7: Pull complete eef17c6cb6cf: Pull complete d5a267fdfe2c: Pull complete d499647c68af: Pull complete ad88e7bd384a: Pull complete ae1d871f3f62: Pull complete 7ceac8eb91d4: Pull complete Digest: sha256:78dff08cefc9fef5c9cbaabab99d783d72d37cb7bbb66a08c4f59877ef406c1fStatus: Downloaded newer image for rabbitmq:3.7.15docker.io/library/rabbitmq:3.7.15

Start the rabbitmq in the container:

[mall@VM_0_7_centos] $sudo docker run-d-- name rabbitmq\ >-- publish 5671-- publish 5672-- publish 4369-- publish 25672-- publish 15671 15671-- publish 15672 15672\ > rabbitmq:3.7.15da8896bb8f5acc5231c636f58e26109b9c59f9b6cb3bf7359343f5c5093765ce

Enter the container and enable the management function:

[mall@VM_0_7_centos] $sudo docker exec-it rabbitmq / bin/bashroot@da8896bb8f5a:/# rabbitmq-plugins enable rabbitmq_management Enabling plugins on node rabbit@da8896bb8f5a:rabbitmq_managementThe following plugins have been configured: rabbitmq_management rabbitmq_management_agent rabbitmq_web_dispatchApplying plugin configuration to rabbit@da8896bb8f5a...The following plugins have been enabled: rabbitmq_management rabbitmq_management_agent rabbitmq_web_dispatchstarted 3 plugins.

Open a browser and enter native ip and port 15672:

Log in with the default account password guest/guest, and then add the user mall/mall:

Add virtual hosts:

Configure virtual host / mall to mall users, and click mall in the red box below to enter the settings:

These are all the knowledge points of this introduction. Thank you for your study and support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report