## 1、修改自己的参数项配置
docker run -d --name rabbitmq \
-p 5672:5672 \
-p 15672:15672 \
-v /my/rabbitmq/data:/var/lib/rabbitmq \
--hostname myrabbit \
-e RABBITMQ_DEFAULT_VHOST=/vhost \
-e RABBITMQ_DEFAULT_USER=yourname \
-e RABBITMQ_DEFAULT_PASS=yourpassword \
rabbitmq:3.8.4-management
## 2、如果需要开启死信队列
docker exec -it rabbitmq bash
cd /plugins
wget https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
## 3、或者 容器/plugins映射宿主机对应目录宿主机下载插件
五、ubuntu18 docker 安装rabbitmq:3.8.4-management
最新推荐文章于 2023-12-14 16:35:36 发布