官网

https://www.rabbitmq.com

下载

https://www.rabbitmq.com/install-windows.html

安装文档

https://www.jianshu.com/p/79ca08116d57

docker方式安装

https://www.cnblogs.com/yy-cola/p/11089800.html

https://blog.csdn.net/qq_34775355/article/details/108305396

https://blog.csdn.net/qq_38215042/article/details/108756367

远程搜索

docker search rabbitmq

安装

docker pull rabbitmq

启动RabbitMQ

docker run -d –hostname my-rabbit –name rabbit -p 15672:15672 -p 5672:5672 rabbitmq

安装插件 MQ

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

docker exec -it f263a88d7c0f /bin/bash

启动

http://localhost:15672

用户管理

https://www.shuzhiduo.com/A/6pdD4eqkdw/

rabbitmqctl add_vhost vh
rabbitmqctl add_user wj test
rabbitmqctl set_user_tags wj management
rabbitmqctl set_permissions -p vh test “.*” “.*” “.*”

RabbitMQ channel model create failed

RabbitMQ channel model create failed! RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable

docker rabmit 添加用户步骤

首先进入容器 容器ID 9f5744a3b1ad

docker exec -it f263a88d7c0f /bin/bash

创建用户

rabbitmqctl add_user test 123456

给用户授权角色

rabbitmqctl set_user_tags test administrator

给用户添加权限

rabbitmqctl set_permissions -p / test “.*” “.*” “.*”

删除所有队列

停止对外应用服务:rabbitmqctl stop_app
重置:rabbitmqctl reset (会全部清空,包括账号密码)
启动应用服务:rabbitmqctl start_app

账号错误

RabbitMQ.Client.Exceptions.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.

文档更新时间: 2022-03-27 14:49   作者:admin