docker安裝rabbitmq延時佇列外掛
阿新 • • 發佈:2020-11-24
docker安裝rabbitMQ延時佇列外掛(delayed_message_exchange)
1. 查詢Docker容器中的RabbitMQ映象
docker ps -a
[root@linux ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8efd6f3add3c chenchuxin/dubbo-admin "catalina.sh run" 6 weeks ago Up 5 weeks 0.0.0.0:9090->8080/tcp dubbo-admin 6939b83d0942 zookeeper "/docker-entrypoint.…" 6 weeks ago Up 5 weeks zookeeper01 2aec2548a9f8 525bd2016729"docker-entrypoint.s…" 6 weeks ago Up 5 weeks 0.0.0.0:27017->27017/tcp docker_mongodb
2、上傳rabbitmq_delayed_message_exchange-20171201-3.7.x.ez外掛到Linux資料夾中
下載解壓檔案https://download.csdn.net/download/zhangdaiscott/13130449
3、拷貝外掛檔案到rabbitMQ的Docker容器中
[root@linux ~]# docker cp rabbitmq_delayed_message_exchange-20171201-3.7.x.ez rabbitmq3.7.7:/plugins
4、進入rabbitMQ的Docker容器中docker exec -it rabbitmq3.7.7 bash
[root@linux ~]# docker exec -it rabbitmq3.7.7 bash
root@myRabbit:/#
5、檢視外掛列表
rabbitmq-plugins list
6、啟用外掛
rabbitmq-plugins enable rabbitmq_delayed_message_exchange