{"id":657,"date":"2023-02-26T13:49:34","date_gmt":"2023-02-26T05:49:34","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=657"},"modified":"2023-04-29T18:43:48","modified_gmt":"2023-04-29T10:43:48","slug":"rocketmq-installation-and-deployment-under-windows","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/26\/rocketmq-installation-and-deployment-under-windows\/","title":{"rendered":"Windows\u4e0bRocketMQ\u5b89\u88c5\u90e8\u7f72"},"content":{"rendered":"<h2>RocketMQ\u90e8\u7f72<\/h2>\n<p>\u5feb\u901f\u5f00\u59cb\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/rocketmq.apache.org\/docs\/quick-start\/\">http:\/\/rocketmq.apache.org\/docs\/quick-start\/<\/a><br \/>\n\u5b98\u65b9\u4e0b\u8f7d\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/rocketmq.apache.org\/release_notes\/release-notes-4.4.0\/\">http:\/\/rocketmq.apache.org\/release_notes\/release-notes-4.4.0\/<\/a><\/p>\n<p><!-- more --><\/p>\n<p>\uff081\uff09\u9009\u62e9\u201cBinary\u201d\u8fdb\u884c\u4e0b\u8f7d<br \/>\n\uff082\uff09\u89e3\u538b\u5df2\u4e0b\u8f7d\u5de5\u7a0b<br \/>\n\uff083\uff09\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/p>\n<p>\u53d8\u91cf\u540d\uff1aROCKETMQ_HOME<br \/>\n\u53d8\u91cf\u503c\uff1aD:\\Server\\rocketmq-all-4.4.0-bin-release<\/p>\n<p>\uff082\uff09\u542f\u52a8NAMESERVER<\/p>\n<p>CMD\u547d\u4ee4\u884c\u6267\u884c\u8fdb\u5165\u81f3\u201cMQ\u6587\u4ef6\u5939\\bin\u201d\u4e0b\uff0c\u7136\u540e\u6267\u884c<code>start mqnamesrv.cmd<\/code>\uff0c\u542f\u52a8NAMESERVER\u3002\u6210\u529f\u540e\u4f1a\u5f39\u51fa\u63d0\u793a\u6846\uff0c\u6b64\u6846\u52ff\u5173\u95ed\u3002<\/p>\n<pre><code>> cd D:\\Server\\rocketmq-all-4.4.0-bin-release\\bin\n\n> start mqnamesrv.cmd\n\nJava HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release\nJava HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.\nThe Name Server boot success. serializeType=JSON<\/code><\/pre>\n<p>\uff085\uff09\u542f\u52a8BROKER<\/p>\n<p>Cmd\u547d\u4ee4\u6846\u6267\u884c\u8fdb\u5165\u81f3\u201cMQ\u6587\u4ef6\u5939\\bin\u201d\u4e0b\uff0c\u7136\u540e\u6267\u884c<code>start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true<\/code>\uff0c\u542f\u52a8BROKER\u3002\u6210\u529f\u540e\u4f1a\u5f39\u51fa\u63d0\u793a\u6846\uff0c\u6b64\u6846\u52ff\u5173\u95ed\u3002<\/p>\n<pre><code>> start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true\n\nThe broker[YEZHOU.ME, 10.3.10.114:10911] boot success. serializeType=JSON and name server is 127.0.0.1:9876<\/code><\/pre>\n<p>\u5047\u5982\u5f39\u51fa\u63d0\u793a\u6846\u63d0\u793a\u201c\u9519\u8bef: \u627e\u4e0d\u5230\u6216\u65e0\u6cd5\u52a0\u8f7d\u4e3b\u7c7b xxxxxx\u201d\u3002\u6253\u5f00runbroker.cmd\uff0c\u7136\u540e\u5c06<code>%CLASSPATH%<\/code>\u52a0\u4e0a\u82f1\u6587\u53cc\u5f15\u53f7\u3002\u4fdd\u5b58\u5e76\u91cd\u65b0\u6267\u884cstart\u8bed\u53e5\u3002<\/p>\n<h2>RocketMQ\u63d2\u4ef6\u90e8\u7f72<\/h2>\n<p>\uff081\uff09\u4e0b\u8f7d\u5730\u5740\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/apache\/rocketmq-externals.git\">https:\/\/github.com\/apache\/rocketmq-externals.git<\/a><\/p>\n<p>\uff082\uff09\u8fdb\u5165<code>rocketmq-externals\\rocketmq-console\\src\\main\\resources<\/code>\u6587\u4ef6\u5939\uff0c\u6253\u5f00<code>application.properties<\/code>\u8fdb\u884c\u914d\u7f6e<\/p>\n<pre><code>server.contextPath=\nserver.port=8088  \/\/\u914d\u7f6e\u63d2\u4ef6\u5de5\u7a0b\u7aef\u53e3\n#spring.application.index=true\nspring.application.name=rocketmq-console\nspring.http.encoding.charset=UTF-8\nspring.http.encoding.enabled=true\nspring.http.encoding.force=true\nlogging.config=classpath:logback.xml\n#if this value is empty,use env value rocketmq.config.namesrvAddr  NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876\nrocketmq.config.namesrvAddr=127.0.0.1:9876  \/\/\u914d\u7f6eMQ\u5730\u5740\uff08\u9ed8\u8ba4\u7aef\u53e3\u4e3a9876\uff09\n#if you use rocketmq version &lt; 3.5.8, rocketmq.config.isVIPChannel should be false.default true\nrocketmq.config.isVIPChannel=\n#rocketmq-console&#039;s data path:dashboard\/monitor\nrocketmq.config.dataPath=\/tmp\/rocketmq-console\/data\n#set it false if you don&#039;t want use dashboard.default true\nrocketmq.config.enableDashBoardCollect=true\n#set the message track trace topic if you don&#039;t want use the default one\nrocketmq.config.msgTrackTopicName=<\/code><\/pre>\n<p>\uff083\uff09\u4fee\u6539<code>rocketmq-console\/pom.xml<\/code><\/p>\n<p>\u628apom\u6587\u4ef6\u4e2drocketmq\u7684version\u6539\u62104.4.0\u5373\u53ef<\/p>\n<pre><code class=\"language-xml\">&lt;rocketmq.version&gt;4.4.0-SNAPSHOT&lt;\/rocketmq.version&gt;<\/code><\/pre>\n<p>\u6539\u4e3a<\/p>\n<pre><code class=\"language-xml\">&lt;rocketmq.version&gt;4.4.0&lt;\/rocketmq.version&gt;<\/code><\/pre>\n<p>\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/apache\/rocketmq-externals\/issues\/208\">https:\/\/github.com\/apache\/rocketmq-externals\/issues\/208<\/a><\/p>\n<p>\uff084\uff09\u7f16\u8bd1\u542f\u52a8<\/p>\n<p>\u8fdb\u5165<code>\\rocketmq-externals\\rocketmq-console<\/code>\u6587\u4ef6\u5939\uff0c\u6267\u884c<code>mvn clean package -Dmaven.test.skip=true<\/code>\uff0c\u7f16\u8bd1\u751f\u6210<\/p>\n<p>\u7f16\u8bd1\u6210\u529f\u4e4b\u540e\uff0cCMD\u8fdb\u5165<code>target<\/code>\u6587\u4ef6\u5939\uff0c\u6267\u884c<code>java -jar rocketmq-console-ng-1.0.0.jar<\/code>\uff0c\u542f\u52a8<code>rocketmq-console-ng-1.0.0.jar<\/code><\/p>\n<pre><code>D:\\Server\\rocketmq-externals\\rocketmq-console&gt; mvn clean package -Dmaven.test.skip=true\n\nD:\\Server\\rocketmq-externals\\rocketmq-console&gt; cd target\n\nD:\\Server\\rocketmq-externals\\rocketmq-console\\target&gt; java -jar rocketmq-console-ng-1.0.0.jar<\/code><\/pre>\n<p>\uff085\uff09\u6d4b\u8bd5\uff1a\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165<code>127.0.0.1:8088<\/code>\uff0c\u6210\u529f\u540e\u5373\u53ef\u67e5\u770b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RocketMQ\u90e8\u7f72 \u5feb\u901f\u5f00\u59cb\uff1ahttp:\/\/rocketmq.apache.org\/docs\/quick-s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[181],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-rocketmq"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/657","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=657"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}