RocketMQ

一:RocketMQ

1:下载RocketMQ

http://rocketmq.apache.org/release_notes/release-notes-4.7.0/

 

 

2:配置

2. 配置
2.1 系统环境变量配置
变量名:ROCKETMQ_HOME
变量值:MQ解压路径\MQ文件夹名
eg、ROCKETMQ_HOME=D:\usr\rocketmq-all-4.7.0-bin-release

3:启动

3.1 启动NAMESERVER

进入 到bin目录下

然后执行‘start mqnamesrv.cmd’,启动NAMESERVER。成功后会弹出提示框,此框勿关闭。

 

 3.2 启动BROKER
Cmd命令框执行进入至‘MQ文件夹\bin’下,然后执行‘start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true’,启动BROKER。成功后会弹出提示框,此框勿关闭。

 

 二:RocketMQ插件部署

1. 下载
地址:https://github.com/apache/rocketmq-externals.git

 

git clone https://github.com/apache/rocketmq-externals.git

下载完成之后,进入‘rocketmq-externals\rocketmq-console\src\main\resources’文件夹,打开‘application.properties’进行配置。

 1 server.contextPath=
 2 server.port=8088
 3 
 4 ### SSL setting
 5 #server.ssl.key-store=classpath:rmqcngkeystore.jks
 6 #server.ssl.key-store-password=rocketmq
 7 #server.ssl.keyStoreType=PKCS12
 8 #server.ssl.keyAlias=rmqcngkey
 9 
10 #spring.application.index=true
11 spring.application.name=rocketmq-console
12 spring.http.encoding.charset=UTF-8
13 spring.http.encoding.enabled=true
14 spring.http.encoding.force=true
15 logging.config=classpath:logback.xml
16 #if this value is empty,use env value rocketmq.config.namesrvAddr  NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876
17 rocketmq.config.namesrvAddr=127.0.0.1:9876
18 #if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
19 rocketmq.config.isVIPChannel=
20 #rocketmq-console's data path:dashboard/monitor
21 rocketmq.config.dataPath=/tmp/rocketmq-console/data
22 #set it false if you don't want use dashboard.default true
23 rocketmq.config.enableDashBoardCollect=true
24 #set the message track trace topic if you don't want use the default one
25 rocketmq.config.msgTrackTopicName=
26 rocketmq.config.ticketKey=ticket
27 
28 #Must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required
29 rocketmq.config.loginRequired=false

2. 编译启动
用CMD进入‘\rocketmq-externals\rocketmq-console’文件夹,执行‘mvn clean package -Dmaven.test.skip=true’,编译生成。

编译成功之后,Cmd进入‘target’文件夹,执行‘java -jar rocketmq-console-ng-1.0.1.jar’,启动‘rocketmq-console-ng-1.0.1.jar’。

3.测试
浏览器中输入‘127.0.0.1:8088’,成功后即可查看。

 

posted @ 2020-06-11 18:52  陆伟  阅读(326)  评论(0编辑  收藏  举报