下載
下載地址
地址:http://rocketmq.apache.org/release_notes/release-notes-4.7.0/-
選擇‘Binary’進(jìn)行下載
-
解壓已下載工程
配置
- 系統(tǒng)環(huán)境變量配置
變量名:ROCKETMQ_HOME
變量值:MQ解壓路徑\MQ文件夾名
eg晨仑、ROCKETMQ_HOME=D:\Software\rocketmq-4.7.0
啟動(dòng)
-
啟動(dòng)NAMESERVER
Cmd命令框執(zhí)行進(jìn)入至‘MQ文件夾\bin’下真仲,然后執(zhí)行‘start mqnamesrv.cmd’羔挡,啟動(dòng)NAMESERVER。成功后會(huì)彈出提示框,此框勿關(guān)閉晴弃。
-
啟動(dòng)BROKER
Cmd命令框執(zhí)行進(jìn)入至‘MQ文件夾\bin’下袱瓮,然后執(zhí)行‘start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true’,啟動(dòng)BROKER浮禾。成功后會(huì)彈出提示框交胚,此框勿關(guān)閉。
RocketMQ插件部署
git clone https://github.com/apache/rocketmq-externals.git
下載完成之后盈电,進(jìn)入‘rocketmq-externals\rocketmq-console\src\main\resources’文件夾蝴簇,打開‘a(chǎn)pplication.properties’進(jìn)行配置。
server.contextPath=
server.port=8080
### SSL setting
#server.ssl.key-store=classpath:rmqcngkeystore.jks
#server.ssl.key-store-password=rocketmq
#server.ssl.keyStoreType=PKCS12
#server.ssl.keyAlias=rmqcngkey
#spring.application.index=true
spring.application.name=rocketmq-console
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
spring.http.encoding.force=true
logging.config=classpath:logback.xml
#if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876
rocketmq.config.namesrvAddr=127.0.0.1:9876
#if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
rocketmq.config.isVIPChannel=
#rocketmq-console's data path:dashboard/monitor
rocketmq.config.dataPath=/tmp/rocketmq-console/data
#set it false if you don't want use dashboard.default true
rocketmq.config.enableDashBoardCollect=true
#set the message track trace topic if you don't want use the default one
rocketmq.config.msgTrackTopicName=
rocketmq.config.ticketKey=ticket
#Must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required
rocketmq.config.loginRequired=false
- 編譯
用CMD進(jìn)入‘\rocketmq-externals\rocketmq-console’文件夾匆帚,執(zhí)行maven命令編譯生成jar包熬词。
mvn clean package -Dmaven.test.skip=true’,
- 啟動(dòng)
編譯成功之后吸重,Cmd進(jìn)入‘target’文件夾互拾,執(zhí)行命令,啟動(dòng)‘rocketmq-console-ng-1.0.0.jar’嚎幸。
java -jar rocketmq-console-ng-1.0.0.jar
- 測(cè)試
瀏覽器中輸入‘127.0.0.1:配置端口’颜矿,成功后即可查看。
eg:http://127.0.0.1:8088