{"id":2385,"date":"2023-06-27T15:33:03","date_gmt":"2023-06-27T07:33:03","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=2385"},"modified":"2023-07-13T15:50:17","modified_gmt":"2023-07-13T07:50:17","slug":"%e7%a8%8b%e5%ba%8f%e5%91%98%e5%bf%85%e9%a1%bb%e6%8e%8c%e6%8f%a1%e7%9a%84%e6%b6%88%e6%81%af%e4%b8%ad%e9%97%b4%e4%bb%b6-rabbitmq","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/rabbitmq\/%e7%a8%8b%e5%ba%8f%e5%91%98%e5%bf%85%e9%a1%bb%e6%8e%8c%e6%8f%a1%e7%9a%84%e6%b6%88%e6%81%af%e4%b8%ad%e9%97%b4%e4%bb%b6-rabbitmq\/","title":{"rendered":"\u7a0b\u5e8f\u5458\u5fc5\u987b\u638c\u63e1\u7684\u6d88\u606f\u4e2d\u95f4\u4ef6-RabbitMQ"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\">\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 24px;\"><span style=\"display: none;\"><\/span><\/h1>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;color: rgb(0, 0, 0);text-align: left;text-wrap: wrap;background-color: rgb(255, 255, 255);letter-spacing: 0.578px;visibility: visible;\">\u5927\u5bb6\u597d\uff0c\u6211\u662fJava\u5c0f\u65cb\u98ce\uff01\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u7a0b\u5e8f\u5458\u5fc5\u987b\u638c\u63e1\u7684\u6d88\u606f\u4e2d\u95f4\u4ef6-RabbitMQ\u3002<\/h2>\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 24px;\">\u4e00\u3001Rabbit \u6982\u8ff0<\/h1>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">RabbitMQ \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u6d88\u606f\u4ee3\u7406\u548c\u961f\u5217\u670d\u52a1\u5668\uff0c\u7528\u6765\u901a\u8fc7\u666e\u901a\u534f\u8bae\u5728\u5b8c\u5168\u4e0d\u540c\u7684\u5e94\u7528\u4e2d\u95f4\u5171\u4eab\u6570\u636e\uff0cRabbitMQ \u662f\u4f7f\u7528 <strong>Erlang \u8bed\u8a00<\/strong>\u6765\u7f16\u5199\u7684\uff0c\u5e76\u4e14 RabbitMQ \u662f\u57fa\u4e8e AMQP \u534f\u8bae\u7684\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u7279\u70b9\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5f00\u6e90\u3001\u6027\u80fd\u4f18\u79c0<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>Erlang \u8bed\u8a00<\/strong>\u6700\u521d\u7528\u5728\u4ea4\u6362\u673a\u7684\u67b6\u6784\u6a21\u5f0f\uff0c\u8fd9\u6837\u4f7f\u5f97 RabbitMQ \u5728 Broker \u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4ea4\u4e92\u7684\u6027\u80fd\u65f6\u975e\u5e38\u4f18\u79c0\u7684\u3002Erlang \u7684\u4f18\u70b9\uff1aErlang \u6709\u7740\u548c\u539f\u751f Socket \u4e00\u6837\u7684\u5ef6\u8fdf\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u53ef\u9760\u6027<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u63d0\u4f9b\u53ef\u9760\u6027\u6d88\u606f\u6295\u9012\u6a21\u5f0f\uff08confirm\uff09\u3001\u8fd4\u56de\u6a21\u5f0f\uff08return\uff09\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6269\u5c55\u6027<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u591a\u4e2aRabbitMQ \u8282\u70b9\u53ef\u4ee5\u7ec4\u6210\u4e00\u4e2a\u96c6\u7fa4\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u4e1a\u52a1\u60c5\u51b5\u52a8\u6001\u5730\u6269\u5c55\u96c6\u7fa4\u4e2d\u8282\u70b9\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u4e0e SpringAOP \u5b8c\u7f8e\u7684\u6574\u5408\u3001API \u4e30\u5bcc<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u4fdd\u8bc1\u6570\u636e\u4e0d\u4e22\u5931\u7684\u524d\u63d0\u505a\u5230\u9ad8\u53ef\u9760\u6027\u3001\u53ef\u7528\u6027<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 24px;\"><span style=\"display: none;\"><\/span>\u4e8c\u3001AMQP \u534f\u8bae<\/h1>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">AMQP (Advanced Message Queuing Protocol) \u5373\u9ad8\u7ea7\u6d88\u606f\u961f\u5217\u534f\u8bae\uff0c\u662f\u4e00\u4e2a\u8fdb\u7a0b\u95f4\u4f20\u9012<strong>\u5f02\u6b65\u6d88\u606f<\/strong>\u7684<strong>\u7f51\u7edc\u534f\u8bae<\/strong>\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">AMQP \u6a21\u578b<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.4091580502215657\"  data-type=\"png\" data-w=\"677\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152543582.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.4091580502215657\"  data-type=\"png\" data-w=\"677\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152543582.png\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5de5\u4f5c\u8fc7\u7a0b\u5982\u4e0b\uff1a\u9996\u5148\u53d1\u5e03\u8005\uff08Publisher\uff09\u53d1\u5e03\u6d88\u606f\uff08Message\uff09\uff0c\u7ecf\u7531\u4ea4\u6362\u673a Exchange\u3002\u4ea4\u6362\u673a\u6839\u636e<strong>\u8def\u7531\u89c4\u5219<\/strong>\u5c06\u6536\u5230\u7684\u6d88\u606f\u5206\u53d1\u7ed9\u4e0e\u8be5\u4ea4\u6362\u673a\u7ed1\u5b9a\u7684 Queue\u3002\u6700\u540e AMQP \u4ee3\u7406\u4f1a\u5c06\u6d88\u606f\u6295\u9012\u7ed9\u8ba2\u9605\u4e86\u6b64\u961f\u5217\u7684\u6d88\u8d39\u8005\uff0c\u6216\u8005\u6d88\u8d39\u8005\u6309\u7167\u9700\u6c42\u81ea\u884c\u83b7\u53d6\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5173\u4e8e AMQP \u6a21\u578b\u7684\u51e0\u70b9\u8bf4\u660e\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u53d1\u5e03\u8005\u3001\u4ea4\u6362\u673a\u3001\u961f\u5217\u3001\u6d88\u8d39\u8005\u90fd\u53ef\u4ee5\u6709\u591a\u4e2a\u3002AMQP \u662f\u4e00\u4e2a\u7f51\u7edc\u534f\u8bae\uff0c\u6240\u4ee5\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u7684\u53d1\u5e03\u8005\uff0c\u6d88\u8d39\u8005\uff0c\u6d88\u606f\u4ee3\u7406\u53ef\u4ee5\u5206\u522b\u5b58\u5728\u4e8e\u4e0d\u540c\u7684\u8bbe\u5907\u4e0a\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u5e03\u8005\u53d1\u5e03\u6d88\u606f\u65f6\u53ef\u4ee5\u7ed9\u6d88\u606f\u6307\u5b9a\u5404\u79cd\u6d88\u606f\u5c5e\u6027\uff08Message Meta-data\uff09\u3002\u6709\u4e9b\u5c5e\u6027\u6709\u53ef\u80fd\u4f1a\u88ab\u6d88\u606f\u4ee3\u7406\uff08Brokers\uff09\u4f7f\u7528\uff0c\u7136\u800c\u5176\u4ed6\u7684\u5c5e\u6027\u5219\u662f\u5b8c\u5168\u4e0d\u900f\u660e\u7684\uff0c\u5b83\u4eec\u53ea\u80fd\u88ab\u63a5\u6536\u6d88\u606f\u7684\u5e94\u7528\u6240\u4f7f\u7528\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u4ece\u5b89\u5168\u89d2\u5ea6\u8003\u8651\uff0c\u7f51\u7edc\u662f\u4e0d\u53ef\u9760\u7684\uff0c\u53c8\u6216\u662f\u6d88\u8d39\u8005\u5728\u5904\u7406\u6d88\u606f\u7684\u8fc7\u7a0b\u4e2d\u610f\u5916\u6302\u6389\uff0c\u8fd9\u6837\u6ca1\u6709\u5904\u7406\u6210\u529f\u7684\u6d88\u606f\u5c31\u4f1a\u4e22\u5931\u3002\u57fa\u4e8e\u6b64\u539f\u56e0\uff0cAMQP \u6a21\u5757\u5305\u542b\u4e86\u4e00\u4e2a\u6d88\u606f\u786e\u8ba4\u673a\u5236\uff1a\u5f53\u4e00\u4e2a\u6d88\u606f\u4ece\u961f\u5217\u4e2d\u6295\u9012\u7ed9\u6d88\u8d39\u8005\u540e\uff0c\u4e0d\u4f1a\u7acb\u5373\u4ece\u961f\u5217\u4e2d\u5220\u9664\uff0c\u76f4\u5230\u5b83\u6536\u5230\u6765\u81ea\u6d88\u8d39\u8005\u7684\u786e\u8ba4\u56de\u6267\uff08Acknowledgement\uff09\u540e\uff0c\u624d\u5b8c\u5168\u4ece\u961f\u5217\u4e2d\u5220\u9664\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f8b\u5982\u5f53\u4e00\u4e2a\u6d88\u606f\u65e0\u6cd5\u88ab\u6210\u529f\u8def\u7531\u65f6\uff08\u65e0\u6cd5\u4ece\u4ea4\u6362\u673a\u5206\u53d1\u5230\u961f\u5217\uff09\uff0c\u6d88\u606f\u6216\u8bb8\u4f1a\u88ab\u8fd4\u56de\u7ed9\u53d1\u5e03\u8005\u5e76\u88ab\u4e22\u5f03\u3002\u6216\u8005\uff0c\u5982\u679c\u6d88\u606f\u4ee3\u7406\u6267\u884c\u4e86<strong style=\"color: black;\">\u5ef6\u671f\u64cd\u4f5c<\/strong>\uff0c\u6d88\u606f\u4f1a\u88ab\u653e\u5165\u4e00\u4e2a<strong style=\"color: black;\">\u6b7b\u4fe1\u961f\u5217<\/strong>\u4e2d\u3002\u6b64\u65f6\uff0c\u6d88\u606f\u53d1\u5e03\u8005\u53ef\u4ee5\u9009\u62e9\u67d0\u4e9b\u53c2\u6570\u6765\u5904\u7406\u8fd9\u4e9b\u7279\u6b8a\u60c5\u51b5\u3002<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">Producer &amp; Consumer<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u751f\u4ea7\u8005\uff08Producer\uff09\uff0c\u5411 Broker \u53d1\u9001\u6d88\u606f\u7684\u5ba2\u6237\u7aef\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u6d88\u8d39\u8005\uff08Consumer\uff09\uff0c\u4ece Broker \u6d88\u8d39\u6d88\u606f\u7684\u5ba2\u6237\u7aef\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">Broker<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e00\u4e2a RabbitMQ Broker \u53ef\u4ee5\u7b80\u5355\u5730\u770b\u4f5c\u4e00\u4e2a RabbitMQ \u670d\u52a1\u8282\u70b9\uff0c\u6216\u8005 RabbitMQ \u670d\u52a1\u5b9e\u4f8b\u3002\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u53ef\u4ee5\u5c06\u4e00\u4e2a RabbitMQ Broker \u770b\u4f5c\u4e00\u53f0 RabbitMQ \u670d\u52a1\u5668\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">Exchange<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Exchange \u5373\u4ea4\u6362\u5668\uff0c\u662f\u7528\u6765\u53d1\u9001\u6d88\u606f\u7684 AMQP \u5b9e\u4f53\u3002Exchange \u62ff\u5230\u4e00\u4e2a\u6d88\u606f\u4e4b\u540e\u5c06\u5b83<strong>\u8def\u7531<\/strong>\u7ed9\u4e00\u4e2a\u6216\u96f6\u4e2a\u961f\u5217\u3002Exchange \u4f7f\u7528\u54ea\u79cd\u8def\u7531\u7b97\u6cd5\u662f\u7531<strong>\u4ea4\u6362\u673a\u7c7b\u578b<\/strong>\u548c<strong>\u7ed1\u5b9a\uff08Bindings\uff09\u89c4\u5219<\/strong>\u6240\u51b3\u5b9a\u7684\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>Binding<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\"><strong>Producer \u5c06\u6d88\u606f\u53d1\u7ed9 Exchange \u65f6\uff0c\u4e00\u822c\u4f1a\u6307\u5b9a\u4e00\u4e2a RoutingKey (\u8def\u7531\u952e)\uff0c\u7528\u6765\u6307\u5b9a\u8fd9\u4e2a\u6d88\u606f\u7684\u8def\u7531\u89c4\u5219\uff0c\u800c\u8fd9\u4e2a RoutingKey \u9700\u8981\u4e0e\u4ea4\u6362\u5668\u7c7b\u578b\u548c BindingKey (\u7ed1\u5b9a\u952e) \u8054\u5408\u4f7f\u7528\u624d\u80fd\u6700\u7ec8\u751f\u6548<\/strong>\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">RabbitMQ \u4e2d\u901a\u8fc7 <strong>Binding (\u7ed1\u5b9a)<\/strong> &nbsp;\u5c06 Exchange \u4e0e Queue(\u6d88\u606f\u961f\u5217) \u5173\u8054\u8d77\u6765\uff0c\u5728\u7ed1\u5b9a\u65f6\u4e00\u822c\u4f1a\u6307\u5b9a\u4e00\u4e2a BindingKey\uff0c\u8fd9\u6837 RabbitMQ \u5c31\u77e5\u9053\u5982\u4f55\u6b63\u786e\u5c06\u6d88\u606f\u8def\u7531\u5230 Queue \u4e2d\u3002\u4e00\u4e2a\u7ed1\u5b9a\u5c31\u662f\u57fa\u4e8e\u8def\u7531\u952e\u5c06\u4ea4\u6362\u5668\u548c\u6d88\u606f\u961f\u5217\u8fde\u63a5\u8d77\u6765\u7684\u8def\u7531\u89c4\u5219\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u751f\u4ea7\u8005\u5c06\u6d88\u606f\u53d1\u9001\u7ed9\u4ea4\u6362\u5668\uff0c\u5f53 BindingKey \u548c RoutingKey \u76f8\u5339\u914d\u65f6\uff0c\u6d88\u606f\u4f1a\u88ab\u8def\u7531\u5230\u5bf9\u5e94\u7684\u961f\u5217\u4e2d\u3002\u6ce8\u610fBindingKey \u5e76\u4e0d\u662f\u5728\u6240\u6709\u7684\u60c5\u51b5\u4e0b\u90fd\u751f\u6548\uff0c\u5b83\u4f9d\u8d56\u4e8e\u4ea4\u6362\u5668\u7c7b\u578b\uff0c\u6bd4\u5982 fanout \u7c7b\u578b\u7684\u4ea4\u6362\u5668\u5c31\u4f1a\u65e0\u89c6\uff0c\u800c\u662f\u5c06\u6d88\u606f\u8def\u7531\u5230\u6240\u6709\u7ed1\u5b9a\u5230\u8be5\u4ea4\u6362\u5668\u7684\u961f\u5217\u4e2d\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>Exchange \u7c7b\u578b<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Exchange \u6709\u4ee5\u4e0b 4 \u79cd\u7c7b\u578b\uff0c\u4e0d\u540c\u7684\u7c7b\u578b\u5bf9\u5e94\u7740\u4e0d\u540c\u7684\u8def\u7531\u7b56\u7565\uff1a<\/p>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 18px;\"><span style=\"display: none;\"><\/span>direct<span style=\"display: none;\"><\/span><\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Exchange \u9ed8\u8ba4\u7c7b\u578b\u3002<strong>\u8def\u7531\u89c4\u5219\u662f\u628a\u6d88\u606f\u8def\u7531\u5230 Bindingkey \u4e0e RoutingKey \u5b8c\u5168\u5339\u914d\u7684 Queue \u4e2d<\/strong>\u3002direct \u7c7b\u578b\u5e38\u7528\u5728<strong>\u5904\u7406\u6709\u4f18\u5148\u7ea7\u7684\u4efb\u52a1<\/strong>\uff0c\u6839\u636e\u4efb\u52a1\u7684\u4f18\u5148\u7ea7\u628a\u6d88\u606f\u53d1\u9001\u5230\u5bf9\u5e94\u7684\u961f\u5217\uff0c\u8fd9\u6837\u53ef\u4ee5\u6307\u6d3e\u66f4\u591a\u7684\u8d44\u6e90\u53bb\u5904\u7406\u9ad8\u4f18\u5148\u7ea7\u7684\u961f\u5217\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.39330543933054396\"  data-type=\"png\" data-w=\"717\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152544711.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.39330543933054396\"  data-type=\"png\" data-w=\"717\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152544711.png\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4ee5\u4e0a\u56fe\u4e3a\u4f8b\uff0c\u5982\u679c\u53d1\u9001\u6d88\u606f\u7684\u65f6\u5019 RoutingKey=\"booking\"\uff0c\u90a3\u4e48\u6d88\u606f\u4f1a\u8def\u7531\u5230 Queue1 \u548c Queue2\u3002\u5982\u679c\u5728\u53d1\u9001\u6d88\u606f\u7684\u65f6\u5019\u8bbe\u7f6e RoutingKey=\"create\" \u6216 \"confirm\"\uff0c\u6d88\u606f\u53ea\u4f1a\u8def\u7531\u5230Queue2\u3002\u5982\u679c\u4ee5\u5176\u4ed6\u7684 RoutingKey \u53d1\u9001\u6d88\u606f\uff0c\u5219\u6d88\u606f\u4e0d\u4f1a\u8def\u7531\u5230\u8fd9\u4e24\u4e2a\u961f\u5217\u4e2d\u3002<\/p>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 18px;\"><span style=\"display: none;\"><\/span>fanout<span style=\"display: none;\"><\/span><\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u8def\u7531\u89c4\u5219\u662f\u628a\u6240\u6709\u53d1\u9001\u5230\u8be5 Exchange \u7684\u6d88\u606f\u8def\u7531\u5230\u6240\u6709\u4e0e\u5b83\u7ed1\u5b9a\u7684 Queue \u4e2d\uff0c\u4e0d\u9700\u8981\u505a\u4efb\u4f55\u5224\u65ad\u64cd\u4f5c\uff0c\u6240\u4ee5 fanout \u7c7b\u578b\u662f\u6240\u6709\u7684\u4ea4\u6362\u673a\u7c7b\u578b\u91cc\u9762\u901f\u5ea6\u6700\u5feb\u7684\u3002<strong>fanout \u7c7b\u578b\u5e38\u7528\u6765\u5e7f\u64ad\u6d88\u606f<\/strong>\u3002<\/p>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 18px;\"><span style=\"display: none;\"><\/span>topic<span style=\"display: none;\"><\/span><\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">direct \u7c7b\u578b\u7684 Exchange \u8def\u7531\u89c4\u5219\u662f\u5b8c\u5168\u5339\u914d BindingKey \u548c RoutingKey \uff0c\u4f46\u662f\u8fd9\u79cd\u4e25\u683c\u7684\u5339\u914d\u65b9\u5f0f\u5728\u5f88\u591a\u60c5\u51b5\u4e0b\u4e0d\u80fd\u6ee1\u8db3\u5b9e\u9645\u4e1a\u52a1\u7684\u9700\u6c42\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">topic \u7c7b\u578b\u7684 Exchange \u5728\u5339\u914d\u89c4\u5219\u4e0a\u8fdb\u884c\u4e86\u6269\u5c55\uff0c\u5b83\u4e0e direct \u7c7b\u578b\u7684 Exchange \u76f8\u4f3c\uff0c\u4e5f\u662f\u5c06\u6d88\u606f\u8def\u7531\u5230 BindingKey \u548c RoutingKey \u76f8\u5339\u914d\u7684\u961f\u5217\u4e2d\uff0c\u4f46\u8fd9\u91cc\u7684\u5339\u914d\u89c4\u5219\u6709\u4e9b\u4e0d\u540c\uff0c\u5b83\u7ea6\u5b9a\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">RoutingKey \u4e3a\u4e00\u4e2a\u70b9\u53f7<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">.<\/code>\u5206\u9694\u7684\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d<strong style=\"color: black;\">\u88ab <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">.<\/code>\u5206\u9694\u5f00\u7684\u6bcf\u4e00\u6bb5\u72ec\u7acb\u7684\u5b57\u7b26\u4e32\u79f0\u4e3a\u4e00\u4e2a\u5355\u8bcd<\/strong>\uff1b<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">BindingKey \u548c RoutingKey \u4e00\u6837\u4e5f\u662f\u70b9\u53f7 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">.<\/code> \u5206\u9694\u7684\u5b57\u7b26\u4e32;<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">BindingKey \u4e2d\u53ef\u4ee5\u5b58\u5728\u4e24\u79cd\u7279\u6b8a\u5b57\u7b26\u4e32 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">*<\/code> \u548c <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">#<\/code>\uff0c\u7528\u4e8e\u505a\u6a21\u7cca\u5339\u914d\uff0c\u5176\u4e2d <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">*<\/code> &nbsp;\u7528\u4e8e\u5339\u914d\u4e00\u4e2a\u5355\u8bcd\uff0c <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">#<\/code> \u7528\u4e8e\u5339\u914d\u96f6\u4e2a\u6216\u591a\u4e2a\u5355\u8bcd\u3002<\/section>\n<\/li>\n<\/ul>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.39330543933054396\"  data-type=\"png\" data-w=\"717\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545372.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.39330543933054396\"  data-type=\"png\" data-w=\"717\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545372.png\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4ee5\u4e0a\u56fe\u4e3a\u4f8b\uff0c\u5982\u679c\u53d1\u9001\u6d88\u606f\u7684\u65f6\u5019 RoutingKey \u4e3a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\"com.rabbitmq.client\"\uff0c\u90a3\u4e48\u6d88\u606f\u4f1a\u8def\u7531\u5230 Queue1 \u548c Queue2<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\"com.hidden.client\"\uff0c\u90a3\u4e48\u6d88\u606f\u53ea\u4f1a\u8def\u7531\u5230 Queue2 \u4e2d<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\"com.hidden.demo\"\uff0c\u90a3\u4e48\u6d88\u606f\u53ea\u4f1a\u8def\u7531\u5230 Queue2 \u4e2d<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\"java.rabbitmq.demo\"\uff0c\u90a3\u4e48\u6d88\u606f\u53ea\u4f1a\u8def\u7531\u5230 Queue1 \u4e2d<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\"java.util.concurrent\"\uff0c\u90a3\u4e48\u6d88\u606f\u5c06\u4f1a\u88ab\u4e22\u5f03\u6216\u8005\u8fd4\u56de\u7ed9\u751f\u4ea7\u8005\uff0c\u56e0\u4e3a\u5b83\u6ca1\u6709\u5339\u914d\u4efb\u4f55\u8def\u7531\u952e\u3002<\/section>\n<\/li>\n<\/ul>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 18px;\"><span style=\"display: none;\"><\/span>headers<span style=\"display: none;\"><\/span><\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">headers \u7c7b\u578b\u7684 Exchange \u4e0d\u4f9d\u8d56\u4e8e\u8def\u7531\u952e\u7684\u5339\u914d\u89c4\u5219\u6765\u8def\u7531\u6d88\u606f\uff0c\u800c\u662f\u6839\u636e\u53d1\u9001\u7684\u6d88\u606f\u5185\u5bb9\u4e2d\u7684 headers \u5c5e\u6027\u8fdb\u884c\u5339\u914d\u3002\u5728\u7ed1\u5b9a\u961f\u5217\u548c\u4ea4\u6362\u5668\u65f6\u6307\u5b9a\u4e00\u7ec4\u952e\u503c\u5bf9\uff0c\u5f53\u53d1\u9001\u6d88\u606f\u5230\u4ea4\u6362\u5668\u65f6\uff0cRabbitMQ \u4f1a\u83b7\u53d6\u5230\u8be5\u6d88\u606f\u7684 headers\uff08\u4e5f\u662f\u4e00\u4e2a\u952e\u503c\u5bf9\u7684\u5f62\u5f0f)\uff0c\u5bf9\u6bd4\u5176\u4e2d\u7684\u952e\u503c\u5bf9\u662f\u5426\u5b8c\u5168\u5339\u914d\u961f\u5217\u548c\u4ea4\u6362\u5668\u7ed1\u5b9a\u65f6\u6307\u5b9a\u7684\u952e\u503c\u5bf9\uff0c\u5982\u679c\u5b8c\u5168\u5339\u914d\u5219\u6d88\u606f\u4f1a\u8def\u7531\u5230\u8be5\u961f\u5217\uff0c\u5426\u5219\u4e0d\u4f1a\u8def\u7531\u5230\u8be5\u961f\u5217\u3002headers \u7c7b\u578b\u7684 Exchange \u6027\u80fd\u4f1a\u5f88\u5dee\uff0c\u4e0d\u63a8\u8350\u4f7f\u7528\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">Queue<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Queue \u5176\u5b9e\u662f Message Queue \u5373\u6d88\u606f\u961f\u5217\uff0c\u4fdd\u5b58\u6d88\u606f\u5e76\u5c06\u5b83\u4eec\u8f6c\u53d1\u7ed9\u6d88\u8d39\u8005\u3002Queue \u662f\u6d88\u606f\u7684\u5bb9\u5668\uff0c\u4e5f\u662f\u6d88\u606f\u7684\u7ec8\u70b9\u3002\u4e00\u4e2a\u6d88\u606f\u53ef\u6295\u5165\u4e00\u4e2a\u6216\u591a\u4e2a\u961f\u5217\u3002\u6d88\u606f\u4e00\u76f4\u5728\u961f\u5217\u91cc\u9762\uff0c\u7b49\u5f85\u6d88\u8d39\u8005\u8fde\u63a5\u5230\u8fd9\u4e2a\u961f\u5217\u5c06\u5176\u6d88\u8d39\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\"><strong>RabbitMQ \u4e2d\u6d88\u606f\u53ea\u80fd\u5b58\u50a8\u5728\u961f\u5217\u4e2d<\/strong>\uff0c\u800c Kafka \u5c06\u6d88\u606f\u5b58\u50a8\u5728 <strong>Topic<\/strong> \u4e2d\uff0c\u5373\u8be5 Topic \u5bf9\u5e94\u7684 Partition \u4e2d\u3002RabbitMQ \u7684\u751f\u4ea7\u8005\u751f\u4ea7\u6d88\u606f\u5e76\u6700\u7ec8\u6295\u9012\u5230\u961f\u5217\u4e2d\uff0c\u6d88\u8d39\u8005\u53ef\u4ee5\u4ece\u961f\u5217\u4e2d\u83b7\u53d6\u6d88\u606f\u5e76\u6d88\u8d39\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5f53\u591a\u4e2a\u6d88\u8d39\u8005\u8ba2\u9605\u540c\u4e00\u4e2a\u961f\u5217\u65f6\uff0c\u961f\u5217\u4e2d\u7684\u6d88\u606f\u4f1a\u88ab\u5e73\u5747\u5206\u644a\uff08Round-Robin\uff0c\u5373\u8f6e\u8be2\uff09\u7ed9\u591a\u4e2a\u6d88\u8d39\u8005\u8fdb\u884c\u5904\u7406\uff0c\u800c\u4e0d\u662f\u6bcf\u4e2a\u6d88\u8d39\u8005\u90fd\u6536\u5230\u6240\u6709\u7684\u6d88\u606f\u5e76\u5904\u7406\uff0c\u8fd9\u6837\u907f\u514d\u6d88\u606f\u88ab\u91cd\u590d\u6d88\u8d39\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u961f\u5217\u5c5e\u6027<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Queue \u8ddf Exchange \u5171\u4eab\u67d0\u4e9b\u5c5e\u6027\uff0c\u4f46\u662f\u961f\u5217\u4e5f\u6709\u4e00\u4e9b\u53e6\u5916\u7684\u5c5e\u6027\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Name<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Durable\uff1a\u6d88\u606f\u4ee3\u7406\u91cd\u542f\u540e\uff0c\u961f\u5217\u4f9d\u65e7\u5b58\u5728<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Exclusive\uff1a\u53ea\u88ab\u4e00\u4e2a\u8fde\u63a5\u4f7f\u7528\uff0c\u800c\u4e14\u5f53\u8fde\u63a5\u5173\u95ed\u540e\u961f\u5217\u5373\u88ab\u5220\u9664<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Auto-delete\uff1a\u5f53\u6700\u540e\u4e00\u4e2a\u6d88\u8d39\u8005\u9000\u8ba2\u540e\u5373\u88ab\u5220\u9664<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Arguments\uff1a\u4e00\u4e9b\u6d88\u606f\u4ee3\u7406\u7528\u4ed6\u6765\u5b8c\u6210\u7c7b\u4f3c\u4e0e TTL \u7684\u67d0\u4e9b\u989d\u5916\u529f\u80fd<\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u961f\u5217\u521b\u5efa<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u961f\u5217\u5728\u58f0\u660e\uff08declare\uff09\u540e\u624d\u80fd\u88ab\u4f7f\u7528\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5982\u679c\u4e00\u4e2a\u961f\u5217\u5c1a\u4e0d\u5b58\u5728\uff0c\u58f0\u660e\u4e00\u4e2a\u961f\u5217\u4f1a\u521b\u5efa\u5b83\u3002\u5982\u679c\u58f0\u660e\u7684\u961f\u5217\u5df2\u7ecf\u5b58\u5728\uff0c\u5e76\u4e14\u5c5e\u6027\u5b8c\u5168\u76f8\u540c\uff0c\u90a3\u4e48\u6b64\u6b21\u58f0\u660e\u4e0d\u4f1a\u5bf9\u539f\u6709\u961f\u5217\u4ea7\u751f\u4efb\u4f55\u5f71\u54cd\u3002\u5982\u679c\u58f0\u660e\u4e2d\u7684\u5c5e\u6027\u4e0e\u5df2\u5b58\u5728\u961f\u5217\u7684\u5c5e\u6027\u6709\u5dee\u5f02\uff0c\u90a3\u4e48\u4e00\u4e2a\u9519\u8bef\u4ee3\u7801\u4e3a 406 \u7684\u901a\u9053\u7ea7\u5f02\u5e38\u5c31\u4f1a\u88ab\u629b\u51fa\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u961f\u5217\u6301\u4e45\u5316<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6301\u4e45\u5316\u961f\u5217\uff08Durable Queues\uff09\u4f1a\u88ab\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\uff0c\u5f53\u6d88\u606f\u4ee3\u7406\uff08Broker\uff09\u91cd\u542f\u7684\u65f6\u5019\uff0c\u5b83\u4f9d\u65e7\u5b58\u5728\u3002\u6ca1\u6709\u88ab\u6301\u4e45\u5316\u7684\u961f\u5217\u79f0\u4f5c\u6682\u5b58\u961f\u5217\uff08Transient Queues\uff09\u3002\u5e76\u4e0d\u662f\u6240\u6709\u7684\u573a\u666f\u548c\u6848\u4f8b\u90fd\u9700\u8981\u5c06\u961f\u5217\u6301\u4e45\u5316\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6301\u4e45\u5316\u7684\u961f\u5217\u5e76\u4e0d\u4f1a\u4f7f\u5f97\u8def\u7531\u5230\u5b83\u7684\u6d88\u606f\u4e5f\u5177\u6709\u6301\u4e45\u6027\u3002\u5018\u82e5\u6d88\u606f\u4ee3\u7406\u6302\u6389\u4e86\uff0c\u91cd\u65b0\u542f\u52a8\uff0c\u90a3\u4e48\u5728\u91cd\u542f\u7684\u8fc7\u7a0b\u4e2d\u6301\u4e45\u5316\u961f\u5217\u4f1a\u88ab\u91cd\u65b0\u58f0\u660e\uff0c\u65e0\u8bba\u600e\u6837\uff0c<strong>\u53ea\u6709\u7ecf\u8fc7\u6301\u4e45\u5316\u7684\u6d88\u606f\u624d\u80fd\u88ab\u91cd\u65b0\u6062\u590d<\/strong>\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u606f\u673a\u5236<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u786e\u8ba4<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">AMQP \u4ee3\u7406\u5728\u4ec0\u4e48\u65f6\u5019\u5220\u9664\u6d88\u606f\u624d\u662f\u6b63\u786e\u7684\uff1fAMQP 0-9-1 \u89c4\u8303\u7ed9\u6211\u4eec\u4e24\u79cd\u5efa\u8bae\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u81ea\u52a8\u786e\u8ba4\u6a21\u5f0f<\/strong>\uff1a\u5f53\u6d88\u606f\u4ee3\u7406\uff08Broker\uff09\u5c06\u6d88\u606f\u53d1\u9001\u7ed9\u5e94\u7528\u540e\u7acb\u5373\u5220\u9664\u3002\uff08\u4f7f\u7528 AMQP \u65b9\u6cd5\uff1abasic.deliver \u6216 basic.get-ok\uff09<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u663e\u793a\u786e\u8ba4\u6a21\u5f0f<\/strong>\uff1a\u5f85 Consumer \u53d1\u9001\u4e00\u4e2a\u786e\u8ba4\u56de\u6267\uff08acknowledgement\uff09\u540e\u518d\u5220\u9664\u6d88\u606f\u3002\uff08\u4f7f\u7528 AMQP \u65b9\u6cd5\uff1abasic.ack\uff09<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5982\u679c\u4e00\u4e2a\u6d88\u8d39\u8005\u5728\u5c1a\u672a\u53d1\u9001\u786e\u8ba4\u56de\u6267\u7684\u60c5\u51b5\u4e0b\u6302\u6389\u4e86\uff0c\u90a3 AMQP \u4ee3\u7406\u4f1a\u5c06\u6d88\u606f\u91cd\u65b0\u6295\u9012\u7ed9\u53e6\u4e00\u4e2a\u6d88\u8d39\u8005\u3002\u5982\u679c\u5f53\u65f6\u6ca1\u6709\u53ef\u7528\u7684\u6d88\u8d39\u8005\u4e86\uff0c\u6d88\u606f\u4ee3\u7406\u4f1a\u6b7b\u7b49\u4e0b\u4e00\u4e2a\u6ce8\u518c\u5230\u6b64\u961f\u5217\u7684\u6d88\u8d39\u8005\uff0c\u7136\u540e\u518d\u6b21\u5c1d\u8bd5\u6295\u9012\u3002<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u62d2\u7edd\u6d88\u606f<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5f53\u62d2\u7edd\u67d0\u6761\u6d88\u606f\u65f6\uff0c\u5e94\u7528\u53ef\u4ee5\u544a\u8bc9\u6d88\u606f\u4ee3\u7406\u9500\u6bc1\u8be5\u6761\u6d88\u606f\u6216\u8005\u91cd\u65b0\u5c06\u8be5\u6761\u6d88\u606f\u653e\u5165\u961f\u5217\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5f53\u6b64\u961f\u5217\u53ea\u6709\u4e00\u4e2a\u6d88\u8d39\u8005\u65f6\uff0c\u6709\u53ef\u80fd\u5b58\u5728\u62d2\u7edd\u6d88\u606f\u5e76\u5c06\u6d88\u606f\u91cd\u65b0\u653e\u5165\u961f\u5217\u7684\u884c\u4e3a\u800c\u5f15\u8d77\u6d88\u606f\u5728\u540c\u4e00\u4e2a\u6d88\u8d39\u8005\u8eab\u4e0a\u65e0\u9650\u5faa\u73af\u7684\u60c5\u51b5\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u9884\u53d6\u6d88\u606f<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5728\u591a\u4e2a\u6d88\u8d39\u8005\u5171\u4eab\u4e00\u4e2a\u961f\u5217\u65f6\uff0c\u660e\u786e\u6307\u5b9a\u5728\u6536\u5230\u4e0b\u4e00\u4e2a\u786e\u8ba4\u56de\u6267\u524d\u6bcf\u4e2a\u6d88\u8d39\u8005\u4e00\u6b21\u53ef\u4ee5\u63a5\u53d7\u591a\u5c11\u6761\u6d88\u606f\u662f\u975e\u5e38\u6709\u7528\u7684\u3002\u8fd9\u53ef\u4ee5\u5728\u8bd5\u56fe\u6279\u91cf\u53d1\u5e03\u6d88\u606f\u7684\u65f6\u5019\u8d77\u5230<strong>\u7b80\u5355\u7684\u8d1f\u8f7d\u5747\u8861\u548c\u63d0\u9ad8\u6d88\u606f\u541e\u5410\u91cf<\/strong>\u7684\u4f5c\u7528\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u5c5e\u6027<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">AMQP \u6a21\u578b\u4e2d\u7684\u6d88\u606f\uff08Message\uff09\u5bf9\u8c61\u662f\u5e26\u6709\u5c5e\u6027\uff08Attributes\uff09\u7684\uff1a<\/p>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"overflow-x: auto;\">\n<table>\n<thead>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: white;\">\n<th style=\"border-top-width: 1px;border-color: rgb(204, 204, 204);text-align: left;background-color: rgb(240, 240, 240);min-width: 85px;\">\u5c5e\u6027<\/th>\n<th style=\"border-top-width: 1px;border-color: rgb(204, 204, 204);text-align: left;background-color: rgb(240, 240, 240);min-width: 85px;\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"border-width: 0px;border-style: initial;border-color: initial;\">\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: white;\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">Content type<\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u5185\u5bb9\u7c7b\u578b<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">Content encoding<\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u5185\u5bb9\u7f16\u7801<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: white;\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\"><strong>Routing key<\/strong><\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u8def\u7531\u952e<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">Delivery mode (persistent or not)<\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u6295\u9012\u6a21\u5f0f\uff08\u6301\u4e45\u5316 \u6216 \u975e\u6301\u4e45\u5316\uff09<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: white;\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">Message priority<\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u6d88\u606f\u4f18\u5148\u6743<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">Message publishing timestamp<\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u6d88\u606f\u53d1\u5e03\u7684\u65f6\u95f4\u6233<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: white;\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">Expiration period<\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u6d88\u606f\u6709\u6548\u671f<\/td>\n<\/tr>\n<tr style=\"border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);\">\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">Publisher application id<\/td>\n<td style=\"border-color: rgb(204, 204, 204);min-width: 85px;\">\u53d1\u5e03\u5e94\u7528\u7684 ID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6709\u4e9b\u5c5e\u6027\u662f\u88ab AMQP \u4ee3\u7406\u6240\u4f7f\u7528\u7684\uff0c\u4f46\u662f\u5927\u591a\u6570\u662f\u5f00\u653e\u7ed9\u63a5\u6536\u5b83\u4eec\u7684\u5e94\u7528\u89e3\u91ca\u5668\u7528\u7684\u3002\u6709\u4e9b\u5c5e\u6027\u662f\u53ef\u9009\u7684\u4e5f\u88ab\u79f0\u4f5c\u6d88\u606f\u5934\uff08headers\uff09\u3002\u548c HTTP \u534f\u8bae\u7684 X-Headers \u5f88\u76f8\u4f3c\uff0c\u6d88\u606f\u5c5e\u6027\u9700\u8981\u5728\u6d88\u606f\u88ab\u53d1\u5e03\u7684\u65f6\u5019\u5b9a\u4e49\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u4e3b\u4f53<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">AMQP \u7684\u6d88\u606f\u9664\u5c5e\u6027\u5916\uff0c\u4e5f\u542b\u6709\u4e00\u4e2a\u6709\u6548\u8f7d\u8377 Payload\uff08\u6d88\u606f\u5b9e\u9645\u643a\u5e26\u7684\u6570\u636e\uff09\uff0c\u5b83\u88ab AMQP \u4ee3\u7406\u5f53\u4f5c\u4e0d\u900f\u660e\u7684\u5b57\u8282\u6570\u7ec4\u6765\u5bf9\u5f85\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u4ee3\u7406\u4e0d\u4f1a\u68c0\u67e5\u6216\u8005\u4fee\u6539 Payload\uff0c\u6d88\u606f\u53ef\u4ee5\u53ea\u5305\u542b\u5c5e\u6027\u800c\u4e0d\u643a\u5e26\u6709\u6548\u8f7d\u8377\uff0c\u5b83\u901a\u5e38\u4f1a\u4f7f\u7528\u7c7b\u4f3c JSON \u8fd9\u79cd\u5e8f\u5217\u5316\u7684\u683c\u5f0f\u6570\u636e\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u6301\u4e45\u5316<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u80fd\u591f\u4ee5\u6301\u4e45\u5316\u7684\u65b9\u5f0f\u53d1\u5e03\uff0cAMQP \u4ee3\u7406\u4f1a\u5c06\u6b64\u6d88\u606f\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u3002\u5982\u679c\u670d\u52a1\u5668\u91cd\u542f\uff0c\u7cfb\u7edf\u4f1a\u786e\u8ba4\u6536\u5230\u7684\u6301\u4e45\u5316\u6d88\u606f\u672a\u4e22\u5931\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u7b80\u5355\u5730\u5c06\u6d88\u606f\u53d1\u9001\u7ed9\u4e00\u4e2a\u6301\u4e45\u5316\u7684\u4ea4\u6362\u673a\u6216\u8005\u8def\u7531\u7ed9\u4e00\u4e2a\u6301\u4e45\u5316\u7684\u961f\u5217\uff0c\u5e76\u4e0d\u4f1a\u4f7f\u5f97\u6b64\u6d88\u606f\u5177\u6709\u6301\u4e45\u5316\u6027\u8d28\uff1a\u5b83\u5b8c\u5168\u53d6\u51b3\u4e0e\u6d88\u606f\u672c\u8eab\u7684\u6301\u4e45\u6a21\u5f0f\uff08persistence mode\uff09\u3002\u5c06\u6d88\u606f\u4ee5\u6301\u4e45\u5316\u65b9\u5f0f\u53d1\u5e03\u65f6\uff0c\u4f1a\u5bf9\u6027\u80fd\u9020\u6210\u4e00\u5b9a\u7684\u5f71\u54cd\uff08\u5c31\u50cf\u6570\u636e\u5e93\u64cd\u4f5c\u4e00\u6837\uff0c\u5065\u58ee\u6027\u7684\u5b58\u5728\u5fc5\u5b9a\u9020\u6210\u4e00\u4e9b\u6027\u80fd\u635f\u5931\uff09\u3002<\/p>\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 24px;\"><span style=\"display: none;\"><\/span>\u4e09\u3001RabbitMQ \u547d\u4ee4\u884c\u64cd\u4f5c<\/h1>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.4579310344827586\"  data-type=\"png\" data-w=\"725\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545576.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.4579310344827586\"  data-type=\"png\" data-w=\"725\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545576.png\"  \/><\/noscript><\/figure>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u542f\u52a8 &amp; \u505c\u6b62\u670d\u52a1\u5668<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u542f\u52a8\u670d\u52a1\u5668<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmq-server&nbsp;start&nbsp;&amp;<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u505c\u6b62\u670d\u52a1\u5668<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;stop_app<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u67e5\u770b\u7ba1\u63a7\u53f0<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;padding: 16px;color: #383a42;background: #fafafa;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;\">http:\/\/localhost:15672\/<br  \/><br  \/>#&nbsp;\u7528\u6237\u540d&nbsp;guest<br  \/>#&nbsp;\u5bc6\u7801&nbsp;guest<br  \/><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u547d\u4ee4\u884c\u57fa\u7840\u64cd\u4f5c<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>1. \u5e94\u7528<span style=\"display: none;\"><\/span><\/h3>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5173\u95ed\u5e94\u7528<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;stop_app<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u542f\u52a8\u5e94\u7528<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;start_app<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u67e5\u770b\u8282\u70b9\u72b6\u6001<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;status<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>2. \u7528\u6237<span style=\"display: none;\"><\/span><\/h3>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6dfb\u52a0\u7528\u6237<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;add_user&nbsp;username&nbsp;password<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5220\u9664\u7528\u6237<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;delete_user&nbsp;username<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5217\u51fa\u6240\u6709\u7528\u6237<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;list_users<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6e05\u9664\u7528\u6237\u6743\u9650<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;clear_permissions&nbsp;-p&nbsp;vhostpath&nbsp;username<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5217\u51fa\u7528\u6237\u6743\u9650<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;list_user_permissions&nbsp;username<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u4fee\u6539\u5bc6\u7801<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;change_password&nbsp;username&nbsp;newpassword<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u8bbe\u7f6e\u7528\u6237\u6743\u9650<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;set_permissions&nbsp;-p&nbsp;vhostpath&nbsp;username&nbsp;\".*\"&nbsp;\".*\"&nbsp;\".*\"<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>3. \u865a\u62df\u4e3b\u673a<span style=\"display: none;\"><\/span><\/h3>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u521b\u5efa\u865a\u62df\u4e3b\u673a<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;add_vhost&nbsp;vhostpath<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5220\u9664\u865a\u62df\u4e3b\u673a<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;delete_vhost&nbsp;vhostpath<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5217\u51fa\u6240\u6709\u865a\u62df\u4e3b\u673a<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;list_vhosts<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5217\u51fa\u865a\u62df\u4e3b\u673a\u4e0a\u6240\u6709\u6743\u9650<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;list_permissions&nbsp;-p&nbsp;vhostpath<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>4. \u961f\u5217<span style=\"display: none;\"><\/span><\/h3>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u67e5\u770b\u6240\u6709\u961f\u5217\u4fe1\u606f<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;list_queues<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6e05\u9664\u961f\u5217\u91cc\u7684\u6d88\u606f<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;-p&nbsp;vhostpath&nbsp;purge_queue&nbsp;blue<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u547d\u4ee4\u884c\u9ad8\u7ea7\u64cd\u4f5c<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u79fb\u9664\u6240\u6709\u6570\u636e<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;reset<br  \/>#&nbsp;\u8981\u5728&nbsp;rabbitmqctl&nbsp;stop_app&nbsp;\u4e4b\u540e\u4f7f\u7528<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u7ec4\u6210\u96c6\u7fa4\u547d\u4ee4<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;join_cluster&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e45649;line-height: 26px;\">clusternode<\/span>&gt;<\/span>&nbsp;[--ram]<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u67e5\u770b\u96c6\u7fa4\u72b6\u6001<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmq&nbsp;cluster_status<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u4fee\u6539\u96c6\u7fa4\u8282\u70b9\u7684\u5b58\u50a8\u5f62\u5f0f<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;change_cluser_node_type&nbsp;disc&nbsp;|&nbsp;ram<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6458\u9664\u8282\u70b9\uff08\u5fd8\u8bb0\u8282\u70b9\uff09<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;forget_cluster_node&nbsp;[--offline]<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u4fee\u6539\u8282\u70b9\u540d\u79f0<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">rabbitmqctl&nbsp;rename_cluster_node&nbsp;oldnode1&nbsp;newnode1&nbsp;[oldnode2]&nbsp;[newnode2]<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<\/ul>\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 24px;\"><span style=\"display: none;\"><\/span>\u56db\u3001RabbitMQ \u9ad8\u7ea7\u7279\u6027<\/h1>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u606f100%\u53ef\u9760\u6027\u6295\u9012\u7684\u89e3\u51b3\u65b9\u6848<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u751f\u4ea7\u7aef\u53ef\u9760\u6027\u6295\u9012<span style=\"display: none;\"><\/span><\/h3>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u4fdd\u969c\u6d88\u606f\u6210\u529f\u53d1\u51fa<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u4fdd\u969c MQ \u8282\u70b9\u7684\u6210\u529f\u63a5\u6536<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u53d1\u9001\u7aef\u6536\u5230 MQ \u8282\u70b9\uff08Broker\uff09\u786e\u8ba4\u5e94\u7b54<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><strong style=\"color: black;\">\u5b8c\u5584\u7684\u6d88\u606f\u8865\u507f\u673a\u5236<\/strong><\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u89e3\u51b3\u65b9\u68481\uff1a\u6d88\u606f\u843d\u5e93<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u843d\u5e93\uff0c\u5bf9\u6d88\u606f\u72b6\u6001\u8fdb\u884c\u6253\u6807\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"lazyload\"data-ratio=\"0.45535714285714285\"  data-type=\"png\" data-w=\"784\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152546413.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" data-ratio=\"0.45535714285714285\"  data-type=\"png\" data-w=\"784\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152546413.png\"  \/><\/noscript><\/figure>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u89e3\u51b3\u65b9\u68482\uff1a\u4e8c\u6b21\u786e\u8ba4\uff0c\u56de\u8c03\u68c0\u67e5<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u7684\u5ef6\u8fdf\u6295\u9012\uff0c\u505a\u4e8c\u6b21\u786e\u8ba4\uff0c\u56de\u8c03\u68c0\u67e5\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"lazyload\"data-ratio=\"0.5082592121982211\"  data-type=\"png\" data-w=\"787\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152548877.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" data-ratio=\"0.5082592121982211\"  data-type=\"png\" data-w=\"787\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152548877.png\"  \/><\/noscript><\/figure>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u8d39\u7aef\u5e42\u7b49\u6027\u64cd\u4f5c<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u552f\u4e00 ID + \u6307\u7eb9\u7801 \u673a\u5236\uff0c\u5229\u7528\u6570\u636e\u5e93\u4e3b\u952e\u53bb\u91cd<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u4f18\u70b9\uff1a\u5b9e\u73b0\u7b80\u5355<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u7f3a\u70b9\uff1a\u9ad8\u5e76\u7f5a\u4e0b\u6709\u6570\u636e\u5e93\u5199\u5165\u7684\u6027\u80fd\u74f6\u9888<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u89e3\u51b3\u65b9\u6848\uff1a\u6839\u636e ID \u8fdb\u884c\u5206\u5e93\u5206\u8868\u8fdb\u884c\u7b97\u6cd5\u8def\u7531<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5229\u7528 Redis \u539f\u5b50\u7279\u6027\u5b9e\u73b0<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">Confirm \u6d88\u606f\u673a\u5236<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u7684\u786e\u8ba4\u662f\u6307\u751f\u4ea7\u8005\u6295\u9012\u6d88\u606f\u540e\uff0c\u5982\u679c Broker \u6536\u5230\u6d88\u606f\uff0c\u5219\u4f1a\u7ed9\u751f\u4ea7\u8005\u4e00\u4e2a\u5e94\u7b54\uff0c\u751f\u4ea7\u8005\u8fdb\u884c\u63a5\u6536\u5e94\u7b54\uff0c\u7528\u6765\u786e\u5b9a\u8fd9\u6761\u6d88\u606f\u662f\u5426\u6b63\u5e38\u5730\u53d1\u9001\u5230 Broker\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"lazyload\"data-ratio=\"0.47016011644832606\"  data-type=\"png\" data-w=\"687\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152550819.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" data-ratio=\"0.47016011644832606\"  data-type=\"png\" data-w=\"687\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152550819.png\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5b9e\u73b0\u673a\u5236\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u7b2c\u4e00\u6b65\uff1a\u5728 channel \u4e0a\u5f00\u542f\u786e\u8ba4\u6a21\u5f0f<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">channel.confirmSelect()<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u7b2c\u4e8c\u6b65\uff1a\u5728 channel \u4e0a\u6dfb\u52a0\u76d1\u542c<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">channel.addConfirmListener()<br  \/><\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u76d1\u542c\u6210\u529f\u548c\u5931\u8d25\u7684\u8fd4\u56de\u7ed3\u679c\uff0c\u6839\u636e\u5177\u4f53\u7684\u7ed3\u679c\u5bf9\u6d88\u606f\u8fdb\u884c\u91cd\u65b0\u53d1\u9001\u6216\u8bb0\u5f55\u65e5\u5fd7\u7b49\u540e\u7eed\u5904\u7406\u3002<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">Return \u6d88\u606f\u673a\u5236<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u751f\u4ea7\u8005\u901a\u8fc7\u5236\u52a8\u4e00\u4e2a Exchange \u548c routing key\uff0c\u628a\u6d88\u606f\u9001\u8fbe\u5230\u67d0\u4e00\u4e2a\u961f\u5217\u4e2d\u53bb\uff0c\u7136\u540e\u6d88\u8d39\u8005\u76d1\u542c\u961f\u5217\uff0c\u8fdb\u884c\u6d88\u8d39\u5904\u7406\u64cd\u4f5c\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u6211\u4eec\u5728\u53d1\u9001\u6d88\u606f\u7684\u65f6\u5019\uff0c\u5f53\u524d\u7684 <strong>Exchange \u4e0d\u5b58\u5728<\/strong>\u6216\u8005\u6307\u5b9a\u7684 <strong>routing key\u8def\u7531\u4e0d\u5230<\/strong>\uff0c\u6b64\u65f6\u6211\u4eec\u9700\u8981\u76d1\u542c\u8fd9\u79cd\u4e0d\u53ef\u8fbe\u7684\u6d88\u606f\uff0c\u5c31\u8981\u4f7f\u7528 Return Listener\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u57fa\u7840 API \u6709\u4e00\u4e2a\u914d\u7f6e\u9879 mandatory<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u5982\u679c\u4e3a true\uff0c\u90a3\u4e48\u76d1\u542c\u5668\u4f1a\u63a5\u6536\u5230\u8def\u7531\u4e0d\u53ef\u8fbe\u7684\u6d88\u606f\uff0c\u7136\u540e\u8fdb\u884c\u540e\u7eed\u5904\u7406<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u5982\u679c\u4e3a false, \u90a3\u4e48 Broker \u7aef\u81ea\u52a8\u5220\u9664\u8be5\u6d88\u606f<\/section>\n<\/li>\n<\/ul>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.38669064748201437\"  data-type=\"png\" data-w=\"556\" style=\"display: block;margin-right: auto;margin-left: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152551342.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.38669064748201437\"  data-type=\"png\" data-w=\"556\" style=\"display: block;margin-right: auto;margin-left: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152551342.png\"  \/><\/noscript><\/figure>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u8d39\u7aef\u9650\u6d41<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">RabbitMQ \u63d0\u4f9b\u4e86\u4e00\u79cd QoS\uff08\u670d\u52a1\u8d28\u91cf\u4fdd\u8bc1\uff09 \u529f\u80fd\uff0c<strong>\u5728\u975e\u81ea\u52a8\u786e\u8ba4\u6d88\u606f\u7684\u524d\u63d0\u4e0b<\/strong>\uff0c\u5982\u679c\u4e00\u5b9a\u6570\u76ee\u7684\u6d88\u606f\uff08\u901a\u8fc7\u57fa\u4e8e Consume \u6216\u8005 Channel \u8bbe\u7f6e QoS \u503c\uff09\u672a\u88ab\u786e\u8ba4\u524d\uff0c\u4e0d\u8fdb\u884c\u6d88\u8d39\u65b0\u7684\u6d88\u606f\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d89\u53ca\u5230\u7684\u65b9\u6cd5\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;padding: 16px;color: #383a42;background: #fafafa;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;\">void&nbsp;BasicQoS(unit&nbsp;prefetchSize,ushort&nbsp;prefetchCount,bool&nbsp;global)<br  \/><\/code><\/pre>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">prefetchSize\uff1a0<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">prefetchCount\uff1a\u544a\u77e5 RabbitMQ \u4e0d\u8981\u540c\u65f6\u7ed9\u4e00\u4e2a\u6d88\u8d39\u8005\u63a8\u9001\u591a\u4e2a N \u4e2a\u6d88\u606f\uff0c\u5373\u4e00\u65e6\u6709 N \u4e2a\u6d88\u606f\u8fd8\u6ca1\u6709 ACK\uff0c\u5219\u8be5 Consumer \u5c06 block \u6389\uff0c\u4e00\u76f4\u5230\u6709\u6d88\u606f ack<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">golbal\uff1atrue \u8868\u793a\u5c06\u4e0a\u9762\u8bbe\u7f6e\u5e94\u7528\u4e8e Channel\uff1btrue \u8868\u793a\u5c06\u4e0a\u9762\u8bbe\u7f6e\u5e94\u7528\u4e8e Consumer\u3002<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6ce8\u610f\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">prefetchSize \u548c global \u8fd9\u4e24\u9879\uff0cRabbitMQ \u6ca1\u6709\u5b9e\u73b0\uff0c\u6682\u4e14\u4e0d\u7814\u7a76<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">prefetchCount \u5728 no_ask-false \u7684\u60c5\u51b5\u4e0b\u751f\u6548\uff0c\u5373\u5728\u81ea\u52a8\u5e94\u7b54\u7684\u60c5\u51b5\u4e0b\u662f\u4e0d\u751f\u6548\u7684<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u8d39\u7aef ACK \u4e0e\u91cd\u56de\u961f\u5217<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u6d88\u8d39\u7aef\u7684\u624b\u5de5 ACK \u548c NACK<\/strong><\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6d88\u8d39\u7aef\u8fdb\u884c\u6d88\u8d39\u65f6\uff1a<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5982\u679c\u7531\u4e8e\u4e1a\u52a1\u5f02\u5e38\uff0c\u6211\u4eec\u53ef\u4ee5\u8fdb\u884c\u65e5\u5fd7\u7684\u8bb0\u5f55\uff0c\u7136\u540e\u8fdb\u884c\u8865\u507f\uff1b<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5982\u679c\u7531\u4e8e\u670d\u52a1\u5668\u5b95\u673a\u7b49\u4e25\u91cd\u95ee\u9898\uff0c\u90a3\u4e48\u9700\u8981\u624b\u5de5\u8fdb\u884c ACK \u4fdd\u969c\u6d88\u8d39\u7aef\u6d88\u8d39\u6210\u529f<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u6d88\u8d39\u7aef\u7684\u91cd\u56de\u961f\u5217<\/strong><\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6d88\u8d39\u7aef\u91cd\u56de\u961f\u5217\u662f\u4e3a\u4e86\u5bf9\u6ca1\u6709\u6210\u529f\u7684\u6d88\u606f\uff0c \u6d88\u606f\u4f1a\u88ab\u91cd\u65b0\u6295\u9012\u7ed9 Broker\u3002\u4e00\u822c\u5728\u4f7f\u7528\u5e94\u7528\u4e2d\uff0c\u90fd\u4f1a\u5173\u95ed\u91cd\u56de\u961f\u5217\uff0c\u5373\u8bbe\u7f6e\u4e3a false\u3002<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">TTL<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">TTL\uff08Time To Live\uff09\u5373\u751f\u5b58\u65f6\u95f4\u3002<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">RabbitMQ \u652f\u6301<strong style=\"color: black;\">\u6d88\u606f<\/strong>\u7684\u8fc7\u671f\u65f6\u95f4\uff0c\u5728\u6d88\u606f\u53d1\u9001\u65f6\u53ef\u4ee5\u8fdb\u884c\u6307\u5b9a<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">RabbitMQ \u652f\u6301<strong style=\"color: black;\">\u961f\u5217<\/strong>\u7684\u8fc7\u671f\u65f6\u95f4\uff0c\u4ece\u6d88\u606f\u5982\u961f\u5217\u5f00\u59cb\u8ba1\u7b97\uff0c\u53ea\u8981\u8d85\u8fc7\u4e86\u961f\u5217\u7684\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\uff0c\u90a3\u4e48\u4f1a\u81ea\u52a8\u6e05\u9664\u6d88\u606f<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6b7b\u4fe1\u961f\u5217\uff08DLX\uff0cDead-Letter-Exchange \uff09<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5229\u7528 DLX\uff0c\u5f53\u6d88\u606f\u5728\u4e00\u4e2a\u961f\u5217\u4e2d\u53d8\u6210\u6b7b\u4fe1\uff08dead message\uff09\u4e4b\u540e\uff0c\u5176\u80fd\u88ab\u91cd\u65b0 publish \u5230\u53e6\u4e00\u4e2a Exchange\uff0c\u8fd9\u4e2a Exchange \u5c31\u662f DLX\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6d88\u606f\u53d8\u6210\u6b7b\u4fe1\u7684\u51e0\u79cd\u60c5\u51b5\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6d88\u606f\u88ab\u62d2\u7edd\uff08basic.reject \/ basic.nack\uff09\uff0c\u5e76\u4e14 requeue=false<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6d88\u606f TTL \u8fc7\u671f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u961f\u5217\u8fbe\u5230\u6700\u5927\u957f\u5ea6<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6ce8\u610f\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">DLX \u4e5f\u662f\u4e00\u4e2a\u6b63\u5e38\u7684 Exchange\uff0c\u548c\u4e00\u822c\u7684 Exchange \u6ca1\u6709\u533a\u522b\uff0c\u5b83\u80fd\u5728\u4efb\u4f55\u961f\u5217\u4e0a\u88ab\u6307\u5b9a\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u8bbe\u7f6e\u67d0\u4e2a\u961f\u5217\u7684\u5c5e\u6027\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5f53\u8fd9\u4e2a\u961f\u5217\u4e2d\u6709\u6b7b\u4fe1\u65f6\uff0cRabbitMQ \u5c31\u4f1a\u81ea\u52a8\u7684\u5c06\u8fd9\u4e2a\u6d88\u606f\u91cd\u65b0\u53d1\u5e03\u5230\u8bbe\u7f6e\u7684 Exchange \u4e0a\u53bb\uff0c\u8fdb\u800c\u88ab\u8def\u7531\u5230\u53e6\u4e00\u4e2a\u961f\u5217\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6b7b\u4fe1\u961f\u5217\u8bbe\u7f6e\u9700\u8981\u8bbe\u7f6e Exchange \u548c \u961f\u5217\uff0c\u7136\u540e\u7ed1\u5b9a<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">channel.exchangeDeclare(<span style=\"color: #50a14f;line-height: 26px;\">\"dlx.exchange\"<\/span>,&nbsp;<span style=\"color: #50a14f;line-height: 26px;\">\"topic\"<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">true<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">false<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">null<\/span>);<br  \/>channel.queueDeclare(<span style=\"color: #50a14f;line-height: 26px;\">\"dlx.queue\"<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">true<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">false<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">false<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">null<\/span>);<br  \/>channel.queueBind(<span style=\"color: #50a14f;line-height: 26px;\">\"dlx.queue\"<\/span>,&nbsp;<span style=\"color: #50a14f;line-height: 26px;\">\"dlx.exchange\"<\/span>,&nbsp;<span style=\"color: #50a14f;line-height: 26px;\">\"#\"<\/span>);<br  \/><\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u7136\u540e\u6211\u4eec\u8fdb\u884c\u6b63\u5e38\u58f0\u660e Exchange\u3001\u961f\u5217\u548c\u7ed1\u5b9a\uff0c\u6b64\u65f6\u9700\u8981\u5728\u961f\u5217\u4e0a\u52a0\u4e0a\u53c2\u6570 arguments<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;background: rgba(27, 31, 35, 0.05);display: -webkit-box;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">Map&lt;String,&nbsp;Object&gt;&nbsp;agruments&nbsp;=&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">new<\/span>&nbsp;HashMap&lt;String,&nbsp;Object&gt;();<br  \/>agruments.put(<span style=\"color: #50a14f;line-height: 26px;\">\"x-dead-letter-exchange\"<\/span>,&nbsp;<span style=\"color: #50a14f;line-height: 26px;\">\"dlx.exchange\"<\/span>);<br  \/><span style=\"color: #a0a1a7;font-style: italic;line-height: 26px;\">\/\/\u8fd9\u4e2aagruments\u5c5e\u6027\uff0c\u8981\u8bbe\u7f6e\u5230\u58f0\u660e\u961f\u5217\u4e0a<\/span><br  \/>channel.queueDeclare(queueName,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">true<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">false<\/span>,&nbsp;<span style=\"color: #a626a4;line-height: 26px;\">false<\/span>,&nbsp;agruments);<br  \/><\/code><\/pre>\n<\/section>\n<\/li>\n<\/ul>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u9876\u5c16\u67b6\u6784\u5e08\u6808              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662fJava\u5c0f\u65cb\u98ce\uff01\u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u7a0b\u5e8f\u5458\u5fc5\u987b\u638c\u63e1\u7684\u6d88\u606f\u4e2d\u95f4\u4ef6-RabbitMQ\u3002 \u4e00\u3001Rabbit \u6982\u8ff0 RabbitMQ &#8230;<\/p>\n","protected":false},"author":1,"featured_media":2376,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[31],"tags":[],"class_list":["post-2385","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rabbitmq"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152542597-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152543582.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152542597-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152542597.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152543582.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152542597-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152542597.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152542597.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152543582.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152543582.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152544711.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152544711.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545372.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545372.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545576.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152545576.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152546413.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152546413.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152548877.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152548877.png","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152550819.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152550819.png","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152551342.png","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627152551342.png","id":"image15"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"RabbitMQ","post_date":"2023-06-27","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":431,"next_post_id":2881,"next_post_title":"\u900f\u5f7brabbitmq","previous_post_id":null,"previous_post_title":null,"_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2385"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2385\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/2376"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}