RocketMQ单节点安装Windows版

RocketMQ单节点安装Windows版

我大致了解了一下NSQKafkaRocketMQRabbitMQActiveMQ等消息队列,其实我是很喜欢NSQ的,但是它和RocketMQ比起来还是略微差了一些,综合考虑,还是选择尝试学习一下RocketMQ

我电脑环境是Win10JDK1.8,下载是RocketMQ4.9 releases,解压后会有如下的目录结构:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
F:.
│ LICENSE
│ NOTICE
│ README.md

├─benchmark
│ consumer.sh
│ producer.sh
│ runclass.sh
│ shutdown.sh
│ tproducer.sh

├─bin
│ │ cachedog.sh
│ │ cleancache.sh
│ │ cleancache.v1.sh
│ │ mqadmin
│ │ mqadmin.cmd
│ │ mqbroker
│ │ mqbroker.cmd
│ │ mqbroker.numanode0
│ │ mqbroker.numanode1
│ │ mqbroker.numanode2
│ │ mqbroker.numanode3
│ │ mqnamesrv
│ │ mqnamesrv.cmd
│ │ mqshutdown
│ │ mqshutdown.cmd
│ │ os.sh
│ │ play.cmd
│ │ play.sh
│ │ README.md
│ │ runbroker.cmd
│ │ runbroker.sh
│ │ runserver.cmd
│ │ runserver.sh
│ │ setcache.sh
│ │ startfsrv.sh
│ │ tools.cmd
│ │ tools.sh
│ │
│ └─dledger
│ fast-try.sh

├─conf
│ │ broker.conf
│ │ logback_broker.xml
│ │ logback_namesrv.xml
│ │ logback_tools.xml
│ │ plain_acl.yml
│ │ tools.yml
│ │
│ ├─2m-2s-async
│ │ broker-a-s.properties
│ │ broker-a.properties
│ │ broker-b-s.properties
│ │ broker-b.properties
│ │
│ ├─2m-2s-sync
│ │ broker-a-s.properties
│ │ broker-a.properties
│ │ broker-b-s.properties
│ │ broker-b.properties
│ │
│ ├─2m-noslave
│ │ broker-a.properties
│ │ broker-b.properties
│ │ broker-trace.properties
│ │
│ └─dledger
│ broker-n0.conf
│ broker-n1.conf
│ broker-n2.conf

└─lib
annotations-13.0.jar
commons-beanutils-1.9.4.jar
commons-cli-1.2.jar
commons-codec-1.9.jar
commons-collections-3.2.2.jar
commons-digester-2.1.jar
commons-lang3-3.4.jar
commons-logging-1.2.jar
commons-validator-1.7.jar
dledger-0.2.2.jar
fastjson-1.2.76.jar
gson-2.8.6.jar
guava-19.0.jar
jaeger-client-1.6.0.jar
jaeger-core-1.6.0.jar
jaeger-thrift-1.6.0.jar
jaeger-tracerresolver-1.6.0.jar
javassist-3.20.0-GA.jar
javax.annotation-api-1.3.2.jar
jcommander-1.72.jar
jna-4.2.2.jar
kotlin-stdlib-1.4.10.jar
kotlin-stdlib-common-1.4.0.jar
libthrift-0.14.1.jar
logback-classic-1.0.13.jar
logback-core-1.0.13.jar
netty-all-4.0.42.Final.jar
okhttp-4.9.0.jar
okio-2.8.0.jar
openmessaging-api-0.3.1-alpha.jar
opentracing-noop-0.33.0.jar
opentracing-tracerresolver-0.1.8.jar
opentracing-util-0.33.0.jar
rocketmq-acl-4.9.0.jar
rocketmq-broker-4.9.0.jar
rocketmq-client-4.9.0.jar
rocketmq-common-4.9.0.jar
rocketmq-example-4.9.0.jar
rocketmq-filter-4.9.0.jar
rocketmq-logging-4.9.0.jar
rocketmq-namesrv-4.9.0.jar
rocketmq-openmessaging-4.9.0.jar
rocketmq-remoting-4.9.0.jar
rocketmq-srvutil-4.9.0.jar
rocketmq-store-4.9.0.jar
rocketmq-tools-4.9.0.jar
slf4j-api-1.7.7.jar
snakeyaml-1.19.jar
tomcat-annotations-api-8.5.46.jar
tomcat-embed-core-8.5.46.jar

接下来就开始配置环境变量ROCKETMQ_HOMENAMESRV_ADDR

,你也可以通过cmd命令设置

1
2
set ROCKETMQ_HOME="F:\rocketmq"
set NAMESRV_ADDR="localhost:9876" #指定NAMESRV_ADDR的端口

如果不设置,在运行时就会有下面这样的提示

1
2
 F:\rocketmq>bin\mqnamesrv.cmd
Please set the ROCKETMQ_HOME variable in your environment!

另外,在配置JDK的环境变量切记不能有空格,否者在启动时也会出现错误

1
2
3
4
F:\rocketmq>bin\mqnamesrv.cmd
Java 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
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
错误: 找不到或无法加载主类 org.apache.rocketmq.namesrv.NamesrvStartup

好了,环境已经准备就绪,开始发车了,先启动Name Server

1
2
3
4
F:\rocketmq>bin\mqnamesrv.cmd
Java 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
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
The Name Server boot success. serializeType=JSON

在新打开一个cmd窗口启动Broker,指定NAMESRV_ADDR的地址和端口,在启动之前,一定要注意检查broker存储否有足够的空间,如果超过磁盘空间的90%,后面的Producer发送消息时会出现下面的异常信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
org.apache.rocketmq.client.exception.MQClientException: Send [3] times, still failed, cost [1076]ms, Topic: TopicTest, BrokersSent: [gf-, gf-, gf-]
See http://rocketmq.apache.org/docs/faq/ for further details.
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendDefaultImpl(DefaultMQProducerImpl.java:674)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1384)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1328)
at org.apache.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:330)
at org.apache.rocketmq.example.quickstart.Producer.main(Producer.java:67)
Caused by: org.apache.rocketmq.client.exception.MQBrokerException: CODE: 14 DESC: service not available now. It may be caused by one of the following reasons: the broker's disk is full [CL: 0.96 CQ: 0.96 INDEX: 0.96], messages are put to the slave, message store has been shut down, etc. BROKER: 169.254.224.226:10911
For more information, please visit the url, http://rocketmq.apache.org/docs/faq/
at org.apache.rocketmq.client.impl.MQClientAPIImpl.processSendResponse(MQClientAPIImpl.java:666)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessageSync(MQClientAPIImpl.java:505)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessage(MQClientAPIImpl.java:487)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessage(MQClientAPIImpl.java:431)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendKernelImpl(DefaultMQProducerImpl.java:863)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendDefaultImpl(DefaultMQProducerImpl.java:593)
... 4 more

如果不配置存储路径的话,默认是存放在C:\Users\下面的,因为我的C盘都超过95%,所以必须得改一下存储路径

1
2
3
4
#持久化消息存储根路径
storePathRootDir=D:/data/store
#commitLog文件存储路径
storePathCommitLog=D:/data/store/commitlog

接下来就是指定配置文件启动broker

1
2
F:\rocketmq>bin\mqbroker.cmd -n localhost:9876 autoCreateTopicEnable=true  -c conf/broker.conf
The broker[gf-xxb-wum, 169.254.224.226:10911] boot success. serializeType=JSON and name server is localhost:9876

现在我们继续安装RocketMQ-Console,它可以查看RocketMQ的一些常见指标,这里我们需要去Github下载源码来自行编译,如果自行编译的话,需要有JDKMaven
接下来,我们cmd进入到RocketMQ-Console的源码目录,执行打包命令mvn clean package -Dmaven.test.skip=true

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
G:\迅雷下载\rocketmq-externals-master\rocketmq-console>mvn clean package -Dmaven.test.skip=true
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'repositories' (position: START_TAG seen ...<profiles>\r\n <repositories>... @228:19) @ D:\Program Files\maven-3.6.3\bin\..\conf\settings.xml, line 228, column 19
[WARNING]
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< org.apache:rocketmq-console-ng >-------------------
[INFO] Building rocketmq-console-ng 2.0.0
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-remote-resources-plugin/1.5/maven-remote-resources-plugin-1.5.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-remote-resources-plugin/1.5/maven-remote-resources-plugin-1.5.pom (13 kB at 3.5 kB/s)
................................................................
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ rocketmq-console-ng ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ rocketmq-console-ng ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ rocketmq-console-ng ---
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.pom (7.3 kB at 22 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.pom (3.5 kB at 9.0 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.pom (3.2 kB at 11 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.jar (46 kB at 103 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar (196 kB at 370 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.jar (293 kB at 483 kB/s)
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.0:jar (default-jar) @ rocketmq-console-ng ---
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.0.2/maven-archiver-3.0.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.0.2/maven-archiver-3.0.2.pom (4.1 kB at 13 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/3.1.1/plexus-archiver-3.1.1.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/3.1.1/plexus-archiver-3.1.1.pom (5.0 kB at 16 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.10/commons-compress-1.10.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.10/commons-compress-1.10.pom (13 kB at 40 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.0.2/maven-archiver-3.0.2.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/3.1.1/plexus-archiver-3.1.1.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/maven-archiver/3.0.2/maven-archiver-3.0.2.jar (23 kB at 47 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-archiver/3.1.1/plexus-archiver-3.1.1.jar (178 kB at 284 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar (409 kB at 634 kB/s)
[INFO] Building jar: G:\迅雷下载\rocketmq-externals-master\rocketmq-console\target\rocketmq-console-ng-2.0.0.jar
[INFO]
[INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ rocketmq-console-ng ---
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.2.RELEASE:repackage (default) @ rocketmq-console-ng ---
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.2.2.RELEASE/spring-boot-loader-tools-2.2.2.RELEASE.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.2.2.RELEASE/spring-boot-loader-tools-2.2.2.RELEASE.pom (2.5 kB at 6.7 kB/s)
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.2.2.RELEASE/spring-boot-loader-tools-2.2.2.RELEASE.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/slf4j/slf4j-api/1.7.29/slf4j-api-1.7.29.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/spring-jcl/5.2.2.RELEASE/spring-jcl-5.2.2.RELEASE.jar
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/spring-core/5.2.2.RELEASE/spring-core-5.2.2.RELEASE.jar
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/spring-jcl/5.2.2.RELEASE/spring-jcl-5.2.2.RELEASE.jar (24 kB at 62 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/slf4j/slf4j-api/1.7.29/slf4j-api-1.7.29.jar (41 kB at 104 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-loader-tools/2.2.2.RELEASE/spring-boot-loader-tools-2.2.2.RELEASE.jar (154 kB at 314 kB/s)
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/spring-core/5.2.2.RELEASE/spring-core-5.2.2.RELEASE.jar (1.4 MB at 1.5 MB/s)
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:27 min
[INFO] Finished at: 2021-08-12T08:41:49+08:00
[INFO] ------------------------------------------------------------------------

编译成功后,会在target目录中生成相应的jar包。

接下来执行该jar包即可java -jar rocketmq-console-ng-2.0.0.jar --rocketmq.config.namesrvAddr=172.20.8.77:9876

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
G:\迅雷下载\rocketmq-externals-master\rocketmq-console>java -jar rocketmq-console-ng-2.0.0.jar  --rocketmq.config.namesrvAddr=172.20.8.77:9876
Error: Unable to access jarfile rocketmq-console-ng-2.0.0.jar

G:\迅雷下载\rocketmq-externals-master\rocketmq-console>cd target

G:\迅雷下载\rocketmq-externals-master\rocketmq-console\target>java -jar rocketmq-console-ng-2.0.0.jar --rocketmq.config.namesrvAddr=172.20.8.77:9876
08:51:57,422 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
08:51:57,423 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
08:51:57,423 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/G:/迅雷下载/rocketmq-externals-master/rocketmq-console/target/rocketmq-console-ng-2.0.0.jar!/BOOT-INF/classes!/logback.xml]
08:51:57,441 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@7591083d - URL [jar:file:/G:/迅雷下载/rocketmq-externals-master/rocketmq-console/target/rocketmq-console-ng-2.0.0.jar!/BOOT-INF/classes!/logback.xml] is not of type file
08:51:57,672 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
08:51:57,673 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
08:51:57,679 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
08:51:57,684 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
08:51:57,831 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
08:51:57,836 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
08:51:57,863 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2007328737 - No compression will be used
08:51:57,864 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2007328737 - Will use the pattern C:/Users/wmymt/logs/consolelogs/rocketmq-console-%d{yyyy-MM-dd}.%i.log for the active file
08:51:57,866 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@736e9adb - The date pattern is 'yyyy-MM-dd' from file name pattern 'C:/Users/wmymt/logs/consolelogs/rocketmq-console-%d{yyyy-MM-dd}.%i.log'.
08:51:57,866 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@736e9adb - Roll-over at midnight.
08:51:57,871 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@736e9adb - Setting initial period to Thu Aug 12 08:51:57 CST 2021
08:51:57,871 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@736e9adb - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
08:51:57,871 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@736e9adb - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
08:51:57,872 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
08:51:57,874 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: C:\Users\wmymt/logs/consolelogs/rocketmq-console.log
08:51:57,874 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [C:\Users\wmymt/logs/consolelogs/rocketmq-console.log]
08:51:57,876 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
08:51:57,876 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
08:51:57,876 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
08:51:57,876 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
08:51:57,877 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@6d21714c - Registering current configuration as safe fallback point


. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.2.RELEASE)

[2021-08-12 08:51:58.603] INFO Starting App v2.0.0 on gf-xxb-wum with PID 42868 (G:\迅雷下载\rocketmq-externals-master\rocketmq-console\target\rocketmq-console-ng-2.0.0.jar started by wmymt in G:\迅雷下载\rocketmq-externals-master\rocketmq-console\target)
[2021-08-12 08:51:58.606] INFO No active profile set, falling back to default profiles: default
[2021-08-12 08:51:59.976] INFO setNameSrvAddrByProperty nameSrvAddr=172.20.8.77:9876
[2021-08-12 08:52:01.327] INFO Tomcat initialized with port(s): 8080 (http)
[2021-08-12 08:52:01.339] INFO Initializing ProtocolHandler ["http-nio-0.0.0.0-8080"]
[2021-08-12 08:52:01.340] INFO Starting service [Tomcat]
[2021-08-12 08:52:01.340] INFO Starting Servlet engine: [Apache Tomcat/9.0.29]
[2021-08-12 08:52:01.553] INFO Initializing Spring embedded WebApplicationContext
[2021-08-12 08:52:01.554] INFO Root WebApplicationContext: initialization completed in 2888 ms
[2021-08-12 08:52:03.075] INFO Initializing ExecutorService 'applicationTaskExecutor'
[2021-08-12 08:52:03.170] INFO Adding welcome page: class path resource [static/index.html]
[2021-08-12 08:52:03.286] INFO Initializing ExecutorService 'taskScheduler'
[2021-08-12 08:52:03.297] INFO Exposing 2 endpoint(s) beneath base path '/actuator'
[2021-08-12 08:52:03.332] INFO Starting ProtocolHandler ["http-nio-0.0.0.0-8080"]
[2021-08-12 08:52:03.370] INFO Tomcat started on port(s): 8080 (http) with context path ''
[2021-08-12 08:52:03.373] INFO Started App in 5.395 seconds (JVM running for 7.388)

rocketmq-console的默认启动端口为8080,此时访问localhost:8080即可看到下面的效果

现在我们启动测试程序bin\tools.cmd org.apache.rocketmq.example.quickstart.Producer.再刷新一下rocketmq-console



好了,RocketMQ单节点安装基本上结束了,后面我们再继续学一下RocketMQ集群版本的配置。

RocketMQ单节点安装Windows版

https://blogs.52fx.biz/posts/814850826.html

作者

eyiadmin

发布于

2021-08-12

更新于

2024-05-31

许可协议

评论