{"id":2786,"date":"2023-10-08T22:49:40","date_gmt":"2023-10-08T14:49:40","guid":{"rendered":"https:\/\/www.tra56.com\/?p=2786"},"modified":"2023-10-08T22:49:40","modified_gmt":"2023-10-08T14:49:40","slug":"2786","status":"publish","type":"post","link":"https:\/\/www.tra56.com\/2786.html","title":{"rendered":"docker\u542f\u52a8rabbitmq\u65e0\u6cd5\u8bbf\u95ee15672\u7aef\u53e3"},"content":{"rendered":"

1.\u95ee\u9898\u8bf4\u660e<\/span><\/p>\n

\u4f7f\u7528rabbitmq:3.8.14\u7248\u672c\u542f\u52a8\u4e86rabbitmq\u5bb9\u5668\uff0c5672\u300125672\u7aef\u53e3\u90fd\u53ef\u4ee5\u8fde\u63a5\uff0c\u552f\u72ec15672\u4ec5\u5728\u670d\u52a1\u5668\u672c\u5730\u53ef\u88ab\u8fde\u63a5\u3002<\/span><\/p>\n


<\/span><\/p>\n

2.\u95ee\u9898\u539f\u56e0<\/span><\/p>\n

rabbitmq:3.8\u7248\u672c\u5f00\u59cb\uff0c\u7ba1\u7406\u63d2\u4ef6\u5305\u542b\u5728RabbitMQ\u53d1\u884c\u7248\u4e2d\u3002\u4e0e\u5176\u4ed6\u4efb\u4f55\u63d2\u4ef6\u4e00\u6837\uff0c\u5fc5\u987b\u5148\u542f\u7528\u5b83\uff0c\u7136\u540e\u624d\u80fd\u4f7f\u7528\u5b83\u3002\u8fd9\u662f\u4f7f\u7528rabbitmq-plugins\u5b8c\u6210\u7684\uff1a<\/span><\/p>\n


<\/span><\/p>\n

\u6267\u884c\u6b64\u547d\u4ee4\u5373\u53ef\uff1arabbitmq-plugins enable rabbitmq_management<\/span><\/p>\n


<\/span><\/p>\n

\u63d2\u4ef6\u6fc0\u6d3b\u540e\uff0c\u65e0\u9700\u91cd\u65b0\u542f\u52a8\u8282\u70b9\u3002<\/span><\/p>\n


<\/span><\/p>\n

3.\u95ee\u9898\u89e3\u51b3<\/span><\/p>\n

\u8fdb\u5165rabbitmq\u5bb9\u5668<\/span><\/p>\n


<\/span><\/p>\n

docker exec -it rabbitmq bash<\/span><\/p>\n

\u6267\u884crabbitmq-plugins enable rabbitmq_management<\/span><\/p>\n

\u6d4f\u89c8\u5668\u518d\u6b21\u8bbf\u95ee\uff0c\u53ef\u8fde\u63a5<\/span><\/p>\n

\"image.png\"\/<\/p>\n

rabbitmq\u5404\u7aef\u53e3\u4f5c\u7528\uff1a<\/p>\n

 <\/p>\n

client\u7aef\u901a\u8fde\u63a5\u7aef\u53e3\uff1a5672
\u9875\u9762\u7ba1\u7406\u8bbf\u95ee\u7aef\u53e3\uff1a 15672
\u670d\u52a1\u95f4\u901a\u4fe1\u7aef\u53e3\uff1a25672<\/p>\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

1.\u95ee\u9898\u8bf4\u660e \u4f7f\u7528rabbitmq:3.8.14\u7248\u672c\u542f\u52a8\u4e86rabbitmq\u5bb9\u5668\uff0c5672\u300125672\u7aef\u53e3\u90fd\u53ef\u4ee5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-2786","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/2786"}],"collection":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/comments?post=2786"}],"version-history":[{"count":1,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/2786\/revisions"}],"predecessor-version":[{"id":2787,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/2786\/revisions\/2787"}],"wp:attachment":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/media?parent=2786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/categories?post=2786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/tags?post=2786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}