操作步骤
- 指令如下
1
2
3
4
5
6
7
|
sudo docker pull docker.io/rabbitmq:3.8-management
sudo docker run \
--name rabbitmq -d \
-p 15672:15672 -p 5672:5672 \
docker.io/rabbitmq:3.8-management
|
- 添加账号
1
2
3
4
5
6
7
|
sudo docker exec -i -t rabbitmq bin/bash
rabbitmqctl add_user root 123456
rabbitmqctl set_permissions -p / root ".*" ".*" ".*"
rabbitmqctl set_user_tags root administrator
rabbitmqctl list_users
|
- 管理页面
http://192.168.30.174:15672
相关教程
- docker安装RabbitMq