{"id":38602,"date":"2025-05-20T17:44:04","date_gmt":"2025-05-20T09:44:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/38602.html"},"modified":"2025-05-20T17:44:04","modified_gmt":"2025-05-20T09:44:04","slug":"rabbitmq%e5%b7%a5%e4%bd%9c%e6%b5%81%e7%a8%8b%e5%8f%8a%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/38602.html","title":{"rendered":"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"<h2>\u4e00\u3001\u4ec0\u4e48\u662fRabbitMQ<\/h2>\n<p>RabbitMQ \u662f\u4e00\u6b3e\u57fa\u4e8e \u200cAMQP&#xff08;\u9ad8\u7ea7&#xff0c;\u6d88\u606f\u961f\u5217\u534f\u8bae&#xff09;\u200c \u7684\u5f00\u6e90\u6d88\u606f\u4e2d\u95f4\u4ef6&#xff0c;\u4e13\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\u8bbe\u8ba1&#xff0c;\u7528\u4e8e<span style=\"color:#fe2c24\">\u5b9e\u73b0\u5e94\u7528\u7a0b\u5e8f\u95f4\u7684\u5f02\u6b65\u901a\u4fe1<\/span>&#xff0c;\u5176\u6838\u5fc3\u529f\u80fd\u662f\u901a\u8fc7 \u200c\u6d88\u606f\u4ee3\u7406&#xff08;Message Broker&#xff09;\u200c \u673a\u5236&#xff0c;\u5b9e\u73b0\u53ef\u9760\u7684\u6d88\u606f\u4f20\u9012\u3001\u5b58\u50a8\u548c\u8def\u7531&#xff0c;\u652f\u6301\u8de8\u8bed\u8a00\u548c\u8de8\u5e73\u53f0\u4ea4\u4e92\u3002<\/p>\n<\/p>\n<hr \/>\n<h2>\u00a0\u4e8c\u3001RabbitMQ\u7684\u5de5\u4f5c\u6d41\u7a0b<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"557\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520094402-682c4ee23257a.png\" width=\"1593\" \/><\/p>\n<p>1. Producer \u548c Broker \u5efa\u7acb\u4e00\u4e2a\u8fde\u63a5&#xff08;Connection&#xff09;\u5e76\u58f0\u660e\u4e00\u4e2a\u4fe1\u9053&#xff08;channel&#xff09;&#xff1b;<\/p>\n<p>2. Producer \u58f0\u660e\u00a0\u4e00\u4e2a\u4ea4\u6362\u673a&#xff08;Exchange&#xff09;&#xff1b;<\/p>\n<p>3. Producer \u58f0\u660e\u4e00\u4e2a\u961f\u5217&#xff08;Queue&#xff09;&#xff1b;<\/p>\n<p>4. Producer \u4e0e Broker \u8fde\u63a5\u5efa\u7acb\u5b8c\u6bd5&#xff0c;\u5f00\u59cb\u5411 Broker \u4f20\u8f93\u4fe1\u606f\u3002<\/p>\n<hr \/>\n<h2>\u4e09\u3001RabbitMQ\u4f7f\u7528\u65b9\u6cd5&#xff08;\u5165\u95e8&#xff09;<\/h2>\n<h4>3.1 \u5f15\u5165\u4f9d\u8d56<\/h4>\n<p>\u521b\u5efa\u4e00\u4e2amaven\u9879\u76ee\u5e76\u6dfb\u52a0RabbitMQ\u4f9d\u8d56&#xff1a;<\/p>\n<p>   &lt;dependency&gt;<br \/>\n     &lt;groupId&gt;com.rabbitmq&lt;\/groupId&gt;<br \/>\n     &lt;artifactId&gt;amqp-client&lt;\/artifactId&gt;<br \/>\n     &lt;version&gt;5.20.0&lt;\/version&gt;<br \/>\n  &lt;\/dependency&gt; <\/p>\n<hr \/>\n<h4>3.2 \u521b\u5efa\u5b9e\u4f53\u7c7bProducerDemo&#xff0c;ConsumerDemo<\/h4>\n<p>package rabbitmq;<\/p>\n<p>import com.rabbitmq.client.Channel;<br \/>\nimport com.rabbitmq.client.Connection;<br \/>\nimport com.rabbitmq.client.ConnectionFactory;<\/p>\n<p>import java.io.IOException;<br \/>\nimport java.util.concurrent.TimeoutException;<\/p>\n<p>public class ProducerDemo {<br \/>\n    public static void main(String[] args) throws IOException, TimeoutException {<br \/>\n        \/*<br \/>\n         * \u6839\u636erabbitmq\u7684\u5de5\u4f5c\u6d41\u7a0b\u56fe&#xff0c;\u4e3b\u8981\u5de5\u4f5c\u5206\u4e3a4\u6b65&#xff1a;<br \/>\n         * 1.\u670d\u52a1\u5668ip<br \/>\n         * 2.\u670d\u52a1\u5668\u7aef\u53e3\u53f7<br \/>\n         * 3.\u8d26\u53f7\u3001\u5bc6\u7801<br \/>\n         * 4.\u865a\u62df\u4e3b\u673a*\/<\/p>\n<p>        \/\/1.\u5efa\u7acb\u8fde\u63a5<br \/>\n        ConnectionFactory connectionFactory &#061; new ConnectionFactory();<br \/>\n        connectionFactory.setHost(&#034;110.41.17.130&#034;);<br \/>\n        connectionFactory.setPort(5672);<br \/>\n        connectionFactory.setPassword(&#034;study&#034;);<br \/>\n        connectionFactory.setUsername(&#034;study&#034;);<br \/>\n        connectionFactory.setVirtualHost(&#034;java113&#034;);<br \/>\n        Connection connection &#061; connectionFactory.newConnection();<\/p>\n<p>        \/\/2.\u5f00\u542f\u4fe1\u9053<br \/>\n        Channel channel &#061; connection.createChannel();<br \/>\n        \/\/3.\u58f0\u660e\u4ea4\u6362\u673a(\u4f7f\u7528\u5185\u7f6e\u4ea4\u6362\u673a&#xff09;<br \/>\n        \/\/4.\u58f0\u660e\u961f\u5217<br \/>\n        \/*AMQP.Queue.DeclareOk queueDeclare(String var1, boolean var2, boolean var3, boolean var4, Map&lt;String, Object&gt; var5) throws IOException;<br \/>\n         *<br \/>\n         *\u53c2\u6570\u8bf4\u660e&#xff1a;<br \/>\n         * s: \u961f\u5217\u540d<br \/>\n         * b: \u53ef\u6301\u4e45\u5316<br \/>\n         * b1: \u662f\u5426\u72ec\u5360&#xff08; \u662f\u5426\u53ea\u80fd\u6709\u4e00\u4e2a\u6d88\u8d39\u8005\u8bfb\u53d6\u961f\u5217\u4e2d\u7684\u4fe1\u606f&#xff09;<br \/>\n         * b2: \u6ca1\u6709\u6d88\u8d39\u8005\u65f6\u662f\u5426\u81ea\u52a8\u5220\u9664<br \/>\n         * map: \u53c2\u6570*\/<br \/>\n        channel.queueDeclare(&#034;hello&#034;,true,false,false,null);<br \/>\n        \/\/5.\u53d1\u9001\u6d88\u606f<br \/>\n        \/*<br \/>\n         * void basicPublish(String var1, String var2, AMQP.BasicProperties var3, byte[] var4) throws IOException;<br \/>\n         * \u53c2\u6570\u8bf4\u660e&#xff1a;<br \/>\n         * var1 \u4ea4\u6362\u673a\u540d\u79f0<br \/>\n         * var2 \u5185\u7f6e\u4ea4\u6362\u673a&#xff0c;\u548c\u961f\u5217\u540d\u79f0\u4e00\u81f4&#xff08;\u8def\u7531\u89c4\u5219&#xff09;<br \/>\n         * var3 \u5c5e\u6027\u914d\u7f6e<br \/>\n         * var4 \u6d88\u606f*\/<br \/>\n        for (int i &#061; 0; i &lt; 10; i&#043;&#043;) {<br \/>\n            String msg &#061; &#034;hello rabbitmq &#034; &#043; i;<br \/>\n            channel.basicPublish(&#034;&#034;,&#034;hello&#034;,null,msg.getBytes());<br \/>\n        }<br \/>\n        System.out.println(&#034;\u6d88\u606f\u53d1\u9001\u6210\u529f&#034;);<br \/>\n        \/\/6.\u8fdb\u884c\u8d44\u6e90\u91ca\u653e<br \/>\n        channel.close();<br \/>\n        connection.close();<br \/>\n    }<br \/>\n}<\/p>\n<p>package rabbitmq;<\/p>\n<p>import com.rabbitmq.client.*;<\/p>\n<p>import java.io.IOException;<br \/>\nimport java.util.concurrent.TimeoutException;<\/p>\n<p>public class ConsumerDemo {<br \/>\n    public static void main(String[] args) throws IOException, TimeoutException, InterruptedException {<\/p>\n<p>        \/\/1.\u521b\u5efa\u8fde\u63a5<br \/>\n        ConnectionFactory connectionFactory &#061; new ConnectionFactory();<br \/>\n        connectionFactory.setHost(&#034;110.41.17.130&#034;);<br \/>\n        connectionFactory.setPort(5672);<br \/>\n        connectionFactory.setUsername(&#034;study&#034;);<br \/>\n        connectionFactory.setPassword(&#034;study&#034;);<br \/>\n        connectionFactory.setVirtualHost(&#034;java113&#034;);<br \/>\n        Connection connection &#061; connectionFactory.newConnection();<br \/>\n        \/\/2.\u521b\u5efachannel<br \/>\n        Channel channel &#061; connection.createChannel();<br \/>\n        \/\/3.\u58f0\u660e\u4e00\u4e2a\u961f\u5217&#xff08;\u5982\u679c\u751f\u4ea7\u8005\u58f0\u660e\u4e86\u53ef\u4ee5\u7701\u7565&#xff09;<br \/>\n        channel.queueDeclare(&#034;hello&#034;,true,false,false,null);<br \/>\n        \/\/4.\u6d88\u8d39\u6d88\u606f<br \/>\n        \/*<br \/>\n        * \u53c2\u6570\u8bf4\u660e&#xff1a;<br \/>\n        * 1. \u961f\u5217\u540d\u79f0<br \/>\n        * 2. \u662f\u5426\u81ea\u52a8\u786e\u8ba4(\u5373\u786e\u8ba4consumer\u662f\u5426\u6536\u5230\u6d88\u606f&#xff09;<br \/>\n        * 3. \u63a5\u6536\u5230\u6d88\u606f\u540e&#xff0c;\u6267\u884c\u7684\u903b\u8f91*\/<br \/>\n        DefaultConsumer consumer &#061; new DefaultConsumer(channel){<br \/>\n            &#064;Override<br \/>\n            public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException {<br \/>\n                \/\/TODO<br \/>\n                System.out.println(&#034;\u63a5\u6536\u6d88\u606f&#034; &#043; new String(body));<br \/>\n            }<br \/>\n        };<br \/>\n        channel.basicConsume(&#034;hello&#034;,true,consumer);<\/p>\n<p>        Thread.sleep(1000);<br \/>\n        \/\/5.\u91ca\u653e\u8d44\u6e90<br \/>\n        channel.close();<br \/>\n        connection.close();<br \/>\n    }<br \/>\n}<\/p>\n<p>1&gt; \u8fd0\u884c\u751f\u4ea7\u8005\u4ee3\u7801&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"239\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520094402-682c4ee28ee40.png\" width=\"1532\" \/><\/p>\n<p>\u67e5\u770bRabbitMQ\u7ba1\u7406\u754c\u9762\u7684\u961f\u5217\u4fe1\u606f&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"584\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520094402-682c4ee2b1064.png\" width=\"1943\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230&#xff0c;\u961f\u5217\u4e2d\u65b0\u589e\u4e8610\u6761\u4fe1\u606f<\/p>\n<p>2&gt;\u8fd0\u884c\u6d88\u8d39\u8005\u4ee3\u7801<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"398\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520094403-682c4ee31c479.png\" width=\"1384\" \/><\/p>\n<p>\u67e5\u770b\u961f\u5217\u4fe1\u606f&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"553\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520094403-682c4ee34c851.png\" width=\"1944\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230&#xff0c;\u961f\u5217\u4e2d\u7684\u4fe1\u606f\u5df2\u7ecf\u88ab\u6d88\u8d39\u5b8c\u6bd5<\/p>\n<hr \/>\n<h2>\u56db\u3001\u603b\u7ed3<\/h2>\n<p>\u5728RabbitMQ\u7684\u4f7f\u7528\u4e2d&#xff0c;\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u6b65&#xff1a;<\/p>\n<p>1&gt; \u5efa\u7acb\u8fde\u63a5&#xff1a;\u65e0\u8bba\u662f\u751f\u4ea7\u8005\u8fd8\u662f\u6d88\u8d39\u8005&#xff0c;\u8981\u4e0e\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5&#xff0c;\u9700\u8981\u77e5\u9053&#xff1a;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0&#xff08;1&#xff09;\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u548c \u7aef\u53e3\u53f7&#xff1b;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0&#xff08;2&#xff09;\u7528\u6237\u540d \u548c \u5bc6\u7801&#xff1b;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0&#xff08;3&#xff09;\u8981\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u54ea\u53f0\u865a\u62df\u673a\u3002<\/p>\n<p>2&gt;\u521b\u5efa\u4fe1\u9053&#xff08;channel&#xff09;<\/p>\n<p>3&gt;\u58f0\u660e\u4ea4\u6362\u673a&#xff08;\u4f7f\u7528\u5185\u7f6e\u4ea4\u6362\u673a\u53ef\u4e0d\u7528\u58f0\u660e&#xff09;<\/p>\n<p>4&gt;\u58f0\u660e\u961f\u5217&#xff08;\u5982\u679c\u751f\u4ea7\u8005\u5df2\u7ecf\u58f0\u660e\u961f\u5217&#xff0c;\u6d88\u8d39\u8005\u53ef\u4ee5\u4e0d\u58f0\u660e&#xff08;\u4e0d\u5efa\u8bae&#xff09;&#xff09;<\/p>\n<p>5&gt;\u751f\u4ea7\u8005\u4f7f\u7528 channel.basicPublish \u65b9\u6cd5\u53d1\u9001\u4fe1\u606f&#xff0c;\u6d88\u8d39\u8005\u4f7f\u7528chaanel.basicConsumer \u65b9\u6cd5\u6d88\u8d39\u4fe1\u606f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb604\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002RabbitMQ\u662f\u4e00\u6b3e\u57fa\u4e8eAMQP\u534f\u8bae\u7684\u5f00\u6e90\u6d88\u606f\u4e2d\u95f4\u4ef6\uff0c\u4e13\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u5f02\u6b65\u901a\u4fe1\u8bbe\u8ba1\u3002\u5b83\u901a\u8fc7\u6d88\u606f\u4ee3\u7406\u673a\u5236\u5b9e\u73b0\u53ef\u9760\u7684\u6d88\u606f\u4f20\u9012\u3001\u5b58\u50a8\u548c\u8def\u7531\uff0c\u5e76\u652f\u6301\u8de8\u8bed\u8a00\u548c\u8de8\u5e73\u53f0\u4ea4\u4e92\u3002RabbitMQ\u7684\u5de5\u4f5c\u6d41\u7a0b\u5305\u62ec\u751f\u4ea7\u8005\u4e0e\u4ee3\u7406\u5efa\u7acb\u8fde\u63a5\u3001\u58f0\u660e\u4ea4\u6362\u673a\u548c\u961f\u5217\uff0c\u4ee5\u53ca\u6d88\u606f\u7684\u4f20\u8f93\u3002\u5165\u95e8\u4f7f\u7528RabbitMQ\u9700\u8981\u5f15\u5165\u4f9d\u8d56\u3001\u521b\u5efa\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u5b9e\u4f53\u7c7b\uff0c\u5e76\u901a\u8fc7\u5efa\u7acb\u8fde\u63a5\u3001\u521b\u5efa\u4fe1\u9053\u3001\u58f0\u660e\u961f\u5217\u3001\u53d1\u9001\u548c\u6d88\u8d39\u6d88\u606f\u7b49\u6b65\u9aa4\u5b9e\u73b0\u6d88\u606f\u7684\u5f02\u6b65\u5904\u7406\u3002\u6700\u540e\uff0c\u8d44\u6e90\u4f7f\u7528\u5b8c\u6bd5\u540e\u9700\u8fdb\u884c\u91ca\u653e\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u8d44\u6e90\u7684\u6709\u6548\u7ba1\u7406\u3002<\/p>\n","protected":false},"author":2,"featured_media":38597,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[663,664],"topic":[],"class_list":["post-38602","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-rabbitmq","tag-664"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/38602.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb604\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002RabbitMQ\u662f\u4e00\u6b3e\u57fa\u4e8eAMQP\u534f\u8bae\u7684\u5f00\u6e90\u6d88\u606f\u4e2d\u95f4\u4ef6\uff0c\u4e13\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u5f02\u6b65\u901a\u4fe1\u8bbe\u8ba1\u3002\u5b83\u901a\u8fc7\u6d88\u606f\u4ee3\u7406\u673a\u5236\u5b9e\u73b0\u53ef\u9760\u7684\u6d88\u606f\u4f20\u9012\u3001\u5b58\u50a8\u548c\u8def\u7531\uff0c\u5e76\u652f\u6301\u8de8\u8bed\u8a00\u548c\u8de8\u5e73\u53f0\u4ea4\u4e92\u3002RabbitMQ\u7684\u5de5\u4f5c\u6d41\u7a0b\u5305\u62ec\u751f\u4ea7\u8005\u4e0e\u4ee3\u7406\u5efa\u7acb\u8fde\u63a5\u3001\u58f0\u660e\u4ea4\u6362\u673a\u548c\u961f\u5217\uff0c\u4ee5\u53ca\u6d88\u606f\u7684\u4f20\u8f93\u3002\u5165\u95e8\u4f7f\u7528RabbitMQ\u9700\u8981\u5f15\u5165\u4f9d\u8d56\u3001\u521b\u5efa\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u5b9e\u4f53\u7c7b\uff0c\u5e76\u901a\u8fc7\u5efa\u7acb\u8fde\u63a5\u3001\u521b\u5efa\u4fe1\u9053\u3001\u58f0\u660e\u961f\u5217\u3001\u53d1\u9001\u548c\u6d88\u8d39\u6d88\u606f\u7b49\u6b65\u9aa4\u5b9e\u73b0\u6d88\u606f\u7684\u5f02\u6b65\u5904\u7406\u3002\u6700\u540e\uff0c\u8d44\u6e90\u4f7f\u7528\u5b8c\u6bd5\u540e\u9700\u8fdb\u884c\u91ca\u653e\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u8d44\u6e90\u7684\u6709\u6548\u7ba1\u7406\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/38602.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-20T09:44:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520094402-682c4ee23257a.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38602.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/38602.html\",\"name\":\"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-20T09:44:04+00:00\",\"dateModified\":\"2025-05-20T09:44:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/38602.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/38602.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38602.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/38602.html","og_locale":"zh_CN","og_type":"article","og_title":"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb604\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002RabbitMQ\u662f\u4e00\u6b3e\u57fa\u4e8eAMQP\u534f\u8bae\u7684\u5f00\u6e90\u6d88\u606f\u4e2d\u95f4\u4ef6\uff0c\u4e13\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u5f02\u6b65\u901a\u4fe1\u8bbe\u8ba1\u3002\u5b83\u901a\u8fc7\u6d88\u606f\u4ee3\u7406\u673a\u5236\u5b9e\u73b0\u53ef\u9760\u7684\u6d88\u606f\u4f20\u9012\u3001\u5b58\u50a8\u548c\u8def\u7531\uff0c\u5e76\u652f\u6301\u8de8\u8bed\u8a00\u548c\u8de8\u5e73\u53f0\u4ea4\u4e92\u3002RabbitMQ\u7684\u5de5\u4f5c\u6d41\u7a0b\u5305\u62ec\u751f\u4ea7\u8005\u4e0e\u4ee3\u7406\u5efa\u7acb\u8fde\u63a5\u3001\u58f0\u660e\u4ea4\u6362\u673a\u548c\u961f\u5217\uff0c\u4ee5\u53ca\u6d88\u606f\u7684\u4f20\u8f93\u3002\u5165\u95e8\u4f7f\u7528RabbitMQ\u9700\u8981\u5f15\u5165\u4f9d\u8d56\u3001\u521b\u5efa\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u5b9e\u4f53\u7c7b\uff0c\u5e76\u901a\u8fc7\u5efa\u7acb\u8fde\u63a5\u3001\u521b\u5efa\u4fe1\u9053\u3001\u58f0\u660e\u961f\u5217\u3001\u53d1\u9001\u548c\u6d88\u8d39\u6d88\u606f\u7b49\u6b65\u9aa4\u5b9e\u73b0\u6d88\u606f\u7684\u5f02\u6b65\u5904\u7406\u3002\u6700\u540e\uff0c\u8d44\u6e90\u4f7f\u7528\u5b8c\u6bd5\u540e\u9700\u8fdb\u884c\u91ca\u653e\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u8d44\u6e90\u7684\u6709\u6548\u7ba1\u7406\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/38602.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-20T09:44:04+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520094402-682c4ee23257a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/38602.html","url":"https:\/\/www.wsisp.com\/helps\/38602.html","name":"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-20T09:44:04+00:00","dateModified":"2025-05-20T09:44:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/38602.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/38602.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/38602.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RabbitMQ\u5de5\u4f5c\u6d41\u7a0b\u53ca\u4f7f\u7528\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=38602"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38602\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/38597"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=38602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=38602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=38602"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=38602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}