{"id":648,"date":"2023-03-23T21:42:05","date_gmt":"2023-03-23T13:42:05","guid":{"rendered":""},"modified":"2023-03-23T21:42:05","modified_gmt":"2023-03-23T13:42:05","slug":"SpringCloud RabbitMQ","status":"publish","type":"post","link":"https:\/\/bianchenghao6.com\/648.html","title":{"rendered":"SpringCloud RabbitMQ"},"content":{"rendered":"


\n <\/head>
\n <\/p>\n

\n

SpringCloud RabbitMQ<\/h1>\n<\/p><\/div>\n

RabbitMQ <\/h2>\n
\n RabbitMQ <\/strong>\u662f\u5e7f\u6cdb\u90e8\u7f72\u7684\u5f00\u6e90
\n \u6d88\u606f\u4ee3\u7406<\/strong>\u8f6f\u4ef6\uff0c\u8be5\u8f6f\u4ef6\u53ef\u5b9e\u73b0
\n \u9ad8\u7ea7\u6d88\u606f\u961f\u5217\u534f\u8bae<\/strong>\u3002\u5b83\u8f7b\u5de7\u4e14\u6613\u4e8e\u5728\u4e91\u4e2d\u90e8\u7f72\u3002\u5b83\u652f\u6301\u591a\u79cd\u6d88\u606f\u4f20\u9012\u534f\u8bae\u3002\u53ef\u4ee5\u5c06\u5176\u90e8\u7f72\u5728\u5206\u5e03\u5f0f\u73af\u5883\u4e2d\uff0c\u4ee5\u6ee1\u8db3
\n \u5927\u89c4\u6a21<\/strong>\u548c
\n \u9ad8\u53ef\u7528\u6027<\/strong>\u7684\u8981\u6c42\u3002\u5b83\u4ee5AMQP\u6807\u51c6\u4e3a\u6a21\u578b\u3002 RabbitMQ\u7528
\n Erlang <\/strong>\u7f16\u7a0b\u8bed\u8a00\u7f16\u5199\u3002\u5b83\u662f\u5728
\n \u5f00\u653e\u7535\u4fe1\u5e73\u53f0(OTP)<\/strong>\u6846\u67b6\u4e0a\u5f00\u53d1\u7684\uff0c\u7528\u4e8e\u96c6\u7fa4\u548c\u6545\u969c\u8f6c\u79fb\u3002\n <\/div>\n
\n RabbitMQ\u8fd0\u884c\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u4e91\u73af\u5883\u4e0a\u3002\u5b83\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u5e73\u53f0\uff0c\u4f8b\u5982
\n Java\uff0c.NET\uff0cPython\uff0c<\/strong>\u7b49\u3002\n <\/div>\n

RabbitMQ\u7684\u4f18\u52bf<\/h3>\n

\u6027\u80fd\u597d<\/span>
\n \u591a\u8bed\u8a00\u652f\u6301<\/span>
\n \u7ba1\u7406\u8f7b<\/span>
\n \u4e0d\u9700\u8981Erlang\u77e5\u8bc6<\/span>
\n \u6587\u6863\u4e30\u5bcc<\/span> <\/p>\n

AMQP\u5b9a\u4e49: <\/h3>\n

\u5728\u4f55\u5904\u53d1\u9001\u6d88\u606f(Routing)<\/strong> <\/span>
\n \u5982\u4f55\u5230\u8fbe\u90a3\u91cc(Delivery)<\/strong> <\/span>
\n \u5fc5\u987b\u8f93\u5165\u7684\u5185\u5bb9(Fidelity)<\/strong> <\/span> <\/p>\n

\u6d88\u606f\u4ee3\u7406<\/h3>\n
\n \u6d88\u606f\u4ee3\u7406\u4f4d\u4e8e\u8ba1\u7b97\u673a\u548c\u5206\u5e03\u5f0f\u8ba1\u7b97\u7cfb\u7edf\u4e4b\u95f4\u3002\u800c\u4e0d\u662f\u5c06\u6d88\u606f\u76f4\u63a5\u4f20\u9012\u5230\u63a5\u6536\u65b9\uff0c\u800c\u662f\u5148\u5c06\u6d88\u606f\u53d1\u9001\u5230\u6d88\u606f\u4ee3\u7406(RabbitMQ)\u3002\u6d88\u606f\u4ee3\u7406\u5728\u4f18\u5316\u7684\u961f\u5217\u4e2d\u5bf9\u6d88\u606f\u8fdb\u884c\u6392\u5e8f\uff0c\u5e76\u5728\u673a\u5668\u51c6\u5907\u5904\u7406\u6d88\u606f\u65f6\u5c06\u5b83\u4eec\u4f20\u9012\u5230\u63a5\u6536\u8ba1\u7b97\u673a\u3002\n <\/div>\n
\n \u6d88\u606f\u53ef\u80fd\u662f\u5904\u7406\u547d\u4ee4\uff0c\u8fd0\u884c\u547d\u4ee4\u7684
\n \u547d\u4ee4\u3002\u6307\u5b9a\u7684\u4efb\u52a1\uff0c\u5373\u5411\u6570\u636e\u5e93\u53d1\u51fa\u62c9\u8bf7\u6c42<\/strong>\u3002\n <\/div>\n
\n \u53d1\u9001\u6d88\u606f\u7684\u673a\u5668\u79f0\u4e3a
\n \u751f\u4ea7\u8005<\/strong>\u3002\u63a5\u6536\u8be5\u6d88\u606f\u7684\u673a\u5668\u79f0\u4e3a
\n \u6d88\u8d39\u8005<\/strong>\u3002\u4e2d\u95f4\u7684\u4f4d\u79f0\u4e3a
\n \u7ecf\u7eaa\u4eba<\/strong>\u3002\n <\/div>\n
\n \u6d88\u606f\u4ee3\u7406\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c:\n <\/div>\n

\u89e3\u8026<\/strong>\u6d88\u606f\u53d1\u5e03\u8005\u548c\u4f7f\u7528\u8005<\/span>
\n \u5b58\u50a8<\/strong>\u6d88\u606f<\/span>
\n \u8def\u7531<\/strong>\u6d88\u606f<\/span>
\n \u76d1\u89c6<\/strong>\u548c\u7ba1\u7406<\/strong>\u6d88\u606f<\/span>
\n \u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u4e4b\u95f4\u7684 \u8f6c\u6362<\/strong>\u6d88\u606f\u683c\u5f0f<\/span> <\/p>\n

Erlang <\/h2>\n
\n Erlang <\/strong>\u662f\u4e00\u79cd
\n \u7f16\u8bd1\u7684\uff0c\u5bb9\u9519\u7684\uff0c\u5e76\u53d1\u7684\uff0c\u52a8\u6001\u7c7b\u578b\u7684<\/strong>\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u7528\u4e8e\u6784\u5efa\u5bf9\u9ad8\u53ef\u7528\u6027\u6709\u8981\u6c42\u7684\u53ef\u5927\u89c4\u6a21\u6269\u5c55\u7684\u5b9e\u65f6\u7cfb\u7edf\u3002\u5b83\u7528\u4e8e
\n \u94f6\u884c<\/strong>\uff0c
\n \u7535\u5b50\u5546\u52a1<\/strong>\uff0c
\n \u7535\u4fe1<\/strong>\uff0c
\n \u8ba1\u7b97\u673a\u7535\u8bdd\uff0c<\/strong>\u548c
\n \u5373\u65f6\u6d88\u606f<\/strong>\u3002\n <\/div>\n

OTP <\/h2>\n
\n OTP\u4ee3\u8868
\n \u5f00\u653e\u7535\u4fe1\u5e73\u53f0<\/strong>\u3002\u5b83\u662f
\n Erlang\u5e93<\/strong>\u548c
\n \u8bbe\u8ba1\u539f\u5219<\/strong>\u7684\u96c6\u5408\u3002\u5b83\u63d0\u4f9b\u4e86\u7528\u4e8e\u5f00\u53d1\u8fd9\u4e9b\u7cfb\u7edf\u7684\u4e2d\u95f4\u4ef6\u3002\u5b83\u5305\u62ec\u81ea\u5df1\u7684\u5de5\u5177\uff0c\u4f8b\u5982
\n \u5206\u5e03\u5f0f\u6570\u636e\u5e93<\/strong>\uff0c
\n \u4e0e\u5176\u4ed6\u8bed\u8a00\u4ea4\u4e92\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8c03\u8bd5<\/strong>\u548c
\n \u53d1\u5e03\u5904\u7406<\/strong>\u5de5\u5177\u3002\n <\/div>\n

\u5982\u4f55\u5728Windows\u4e0a\u5b89\u88c5RabbitMQ <\/h2>\n
\n \u8bb0\u4f4f: <\/strong>\u5728\u5b89\u88c5RabbitMQ\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5
\n Erlang <\/strong>\u3002\n <\/div>\n
\n \u6b65\u9aa41: <\/strong>\u4eceErlang > https:\/\/erlang.org\/download\/otp_win64_22.1.exe \u3002\n <\/div>\n
\n \u6b65\u9aa42: <\/strong>\u4ece\u4ee5\u4e0b\u4f4d\u7f6e\u4e0b\u8f7d\u5e76\u5b89\u88c5
\n RabbitMQ <\/strong> https:\/\/github.com\/rabbitmq\/rabbitmq-server\/releases\/download\/v3.8.1\/rabbitmq-server-3.8.1.exe \u3002\n <\/div>\n
\n \u6b65\u9aa43: <\/strong>\u6253\u5f00
\n \u547d\u4ee4\u63d0\u793a\u7b26<\/strong>\uff0c\u5e76\u4e00\u4e00\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4:\n <\/div>\n
\n
\r\nc:\\>cd\\\r\nc:\\>cd Program Files\r\nc:\\Program Files>cd RabbitMQ Server\r\nc:\\Program Files\\RabbitMQ Server>dir\r\nc:\\Program Files\\RabbitMQ Server>cd rabbitmq_server-3.8.1\r\nc:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.8.1>dir\r\nc:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.8.1>cd sbin\r\nc:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.8.1\\sbin>dir\r\nc:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.8.1\\sbin>rabbitmq-plugins enable rabbitmq_management\r\n<\/pre>\n

<\/code>\n <\/div>\n

\n \u6b65\u9aa44: <\/strong> \u6309Windows\u952e\u5e76\u952e\u5165
\n \u670d\u52a1<\/strong>\uff0c\u6216\u6309
\n Windows\u952e+ R <\/strong>\u5e76\u952e\u5165
\n services.msc <\/strong>\u3002\n <\/div>\n
\n \u6b65\u9aa45: <\/strong>\u9009\u62e9
\n RabbitMQ <\/strong>\u670d\u52a1->\u53f3\u952e\u5355\u51fb->\u91cd\u65b0\u542f\u52a8\u3002\n <\/div>\n

SpringCloud RabbitMQ_https:\/\/bianchenghao6.com_\u3010SpringCloud \u6559\u7a0b\u3011_\u7b2c1\u5f20 <\/p>\n

\n \u6b65\u9aa46: <\/strong>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u7136\u540e\u952e\u5165 http:\/\/localhost:15672 \u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u7ba1\u7406\u63d2\u4ef6\u5728\u7aef\u53e3
\n 15672 <\/strong>\u4e0a\u8fd0\u884c\u3002\n <\/div>\n

SpringCloud RabbitMQ_https:\/\/bianchenghao6.com_\u3010SpringCloud \u6559\u7a0b\u3011_\u7b2c2\u5f20 <\/p>\n

\n \u6b65\u9aa47: <\/strong>\u63d0\u4f9b
\n \u7528\u6237\u540d<\/strong>\u548c
\n \u5bc6\u7801<\/strong>\uff0c\u7136\u540e\u70b9\u51fb
\n \u767b\u5f55<\/strong>\u6309\u94ae
\n \u3002 <\/strong>\u9ed8\u8ba4\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e3a
\n guest <\/strong>\u3002\n <\/div>\n
\n \u4e0b\u4e00\u9875\u663e\u793aRabbitMQ\u7528\u6237\u754c\u9762\u3002\n <\/div>\n

SpringCloud RabbitMQ_https:\/\/bianchenghao6.com_\u3010SpringCloud \u6559\u7a0b\u3011_\u7b2c3\u5f20 <\/p>\n


\n

<\/body>
\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"SpringCloud RabbitMQzh-cn","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-648","post","type-post","status-publish","format-standard","hentry","category-bc_springcloud_jc"],"_links":{"self":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/648"}],"collection":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/comments?post=648"}],"version-history":[{"count":0,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/648\/revisions"}],"wp:attachment":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/media?parent=648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/categories?post=648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/tags?post=648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}