{"id":2018,"date":"2023-04-01T19:18:06","date_gmt":"2023-04-01T11:18:06","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2018"},"modified":"2023-04-07T10:36:35","modified_gmt":"2023-04-07T02:36:35","slug":"installing-rabbitmq-under-windows","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/04\/01\/installing-rabbitmq-under-windows\/","title":{"rendered":"Windows\u4e0b\u5b89\u88c5RabbitMQ"},"content":{"rendered":"<h2>RabbitMQ\u7b80\u4ecb\u4e0e\u5b89\u88c5<\/h2>\n<p>RabbitMQ \u5373\u4e00\u4e2a\u6d88\u606f\u961f\u5217\uff0c\u4e3b\u8981\u662f\u7528\u6765\u5b9e\u73b0\u5e94\u7528\u7a0b\u5e8f\u7684\u5f02\u6b65\u548c\u89e3\u8026\uff0c\u540c\u65f6\u4e5f\u80fd\u8d77\u5230\u6d88\u606f\u7f13\u51b2\uff0c\u6d88\u606f\u5206\u53d1\u7684\u4f5c\u7528\u3002<\/p>\n<p>\uff081\uff09RabbitMQ\u57fa\u4e8eErlang\uff0c\u5b89\u88c5RabbitMQ\u524d\u5148\u8981\u5b89\u88c5Erlang<br \/>\n\uff082\uff09RabbitMQ\u63d2\u4ef6\u542f\u52a8\uff0c\u901a\u8fc7\u542f\u52a8\u6b64\u63d2\u4ef6\u53ef\u4ee5\u67e5\u770bRabbitMQ\u7684\u4e00\u4e9b\u4fe1\u606f<\/p>\n<p><!-- more --><\/p>\n<p>\u5b98\u7f51\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/www.rabbitmq.com\/\">http:\/\/www.rabbitmq.com\/<\/a><br \/>\n\u5b98\u65b9\u4e0b\u8f7d\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/www.rabbitmq.com\/download.html\">http:\/\/www.rabbitmq.com\/download.html<\/a><br \/>\nErlang\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/www.erlang.org\/downloads\">http:\/\/www.erlang.org\/downloads<\/a><\/p>\n<h2>RabbitMQ\u8fd0\u884c\u72b6\u6001\u4e0e\u53ef\u89c6\u5316<\/h2>\n<h3>\u68c0\u67e5RabbitMQ\u8fd0\u884c\u72b6\u6001<\/h3>\n<p>\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u8fdb\u5165RabbitMQ\u7684\u5b89\u88c5\u76ee\u5f55: <code>cd D:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.7.13\\sbin<\/code><\/p>\n<pre><code>> rabbitmqctl status<\/code><\/pre>\n<p>\u5982\u679c\u51fa\u73b0\u4ee5\u4e0b\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u662f\u6210\u529f\u7684\uff0c\u5e76\u4e14\u8bf4\u660e\u5f53\u524dRabbitMQ Server\u5df2\u7ecf\u542f\u52a8\uff1a<\/p>\n<pre><code>D:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.7.13\\sbin&gt;rabbitmqctl status\nStatus of node rabbit@YEZHOU.ME ...\n[{pid,6728},\n {running_applications,\n     [{rabbit,&quot;RabbitMQ&quot;,&quot;3.7.13&quot;},\n      {rabbit_common,\n          &quot;Modules shared by rabbitmq-server and rabbitmq-erlang-client&quot;,\n          &quot;3.7.13&quot;},\n...<\/code><\/pre>\n<p>\u5982\u679c\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\uff1a<\/p>\n<pre><code>******************************\nERLANG_HOME not set correctly.\n******************************\n\nPlease either set ERLANG_HOME to point to your Erlang installation or place the\nRabbitMQ server distribution in the Erlang lib folder.<\/code><\/pre>\n<p>\u5219\u9700\u8981\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<pre><code>ERLANG_HOME = D:\\Program Files\\erl10.3<\/code><\/pre>\n<h3>\u914d\u7f6e\u53ef\u89c6\u5316RabbitMQ\u7ba1\u7406\u754c\u9762<\/h3>\n<p>\u8f93\u5165\u547d\u4ee4<code>rabbitmq-plugins enable rabbitmq_management<\/code>\u5373\u53ef\u6dfb\u52a0\u53ef\u89c6\u5316\u63d2\u4ef6<\/p>\n<pre><code>> rabbitmq-plugins enable rabbitmq_management\nEnabling plugins on node rabbit@YEZHOU.ME:\nrabbitmq_management\nThe following plugins have been configured:\n  rabbitmq_management\n  rabbitmq_management_agent\n  rabbitmq_web_dispatch\nApplying plugin configuration to rabbit@YEZHOU.ME...\nThe following plugins have been enabled:\n  rabbitmq_management\n  rabbitmq_management_agent\n  rabbitmq_web_dispatch\n\nstarted 3 plugins.<\/code><\/pre>\n<p>\u67e5\u770b\u53ef\u89c6\u5316\u63d2\u4ef6\u662f\u5426\u6210\u529f\uff0c\u53ef\u5728web\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u5730\u5740\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/127.0.0.1:15672\/\">http:\/\/127.0.0.1:15672\/<\/a><\/p>\n<p>\u8f93\u5165\u9ed8\u8ba4\u8d26\u53f7: guest\uff0c\u5bc6\u7801: guest<\/p>\n<p>\u5c31\u53ef\u4ee5\u767b\u5f55\u67e5\u770brabbitmq\u91cc\u7684\u8d44\u6e90\u4fe1\u606f<\/p>\n<p>\u81f3\u6b64\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\uff0c\u5e76\u4e14\u76d1\u63a7\u63d2\u4ef6\u5df2\u542f\u52a8<\/p>\n<blockquote>\n<p>\uff081\uff09\u9ed8\u8ba4\u5b89\u88c5\u5b8c\u540e\uff0cRabbitMQ\u5df2\u542f\u52a8<\/p>\n<p>\uff082\uff09\u53ef\u4ee5\u8fd0\u884c<code>rabbitmqctl stop<\/code>\u547d\u4ee4\u6765\u505c\u6b62\u670d\u52a1<\/p>\n<p>\uff083\uff09\u53ef\u4ee5\u8fd0\u884c<code>rabbitmq-server -detached<\/code>\u547d\u4ee4\u6765\u91cd\u542f\u670d\u52a1\u5e76\u540e\u53f0\u8fd0\u884c<\/p>\n<p>\uff084\uff09RabbitMQ\u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u53ef\u4ee5\u5728 <code>C:\/Users\/Administrator\/AppData\/Roaming\/RabbitMQ\/log\/<\/code>\u6587\u4ef6\u5939\u4e0b\u8fdb\u884c\u67e5\u770b\uff0c\u5982\uff1a<code>C:\/Users\/Administrator\/AppData\/Roaming\/RabbitMQ\/log\/rabbit@mywin-PC.log<\/code><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>RabbitMQ\u7b80\u4ecb\u4e0e\u5b89\u88c5 RabbitMQ \u5373\u4e00\u4e2a\u6d88\u606f\u961f\u5217\uff0c\u4e3b\u8981\u662f\u7528\u6765\u5b9e\u73b0\u5e94\u7528\u7a0b\u5e8f\u7684\u5f02\u6b65\u548c\u89e3\u8026\uff0c\u540c\u65f6\u4e5f\u80fd\u8d77\u5230 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-2018","post","type-post","status-publish","format-standard","hentry","category-rabbitmq"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2018"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2018\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}