官方下载文件
http://rocketmq.apache.org/dowloading/releases/
确定报内存错误修改一下文件的内存大小
runbroker
runserver
启动rocketmq
start mqnamesrv.cmd
start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true
报错修改mqbroker内存小一半或者到1/4
找不到主类修改
set CLASSPATH=.;%BASE_DIR%conf;%CLASSPATH%
为
set CLASSPATH=.;%BASE_DIR%conf;"%CLASSPATH%"
可视化工具下载
git clone https://github.com/apache/rocketmq-externals.git
修改配置
rocketmq-externals ocketmq-consolesrcmain esources’文件夹,打开‘application.properties’进行配置。
server.contextPath=
server.port=8088
#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
2. 编译启动
用CMD进入‘
ocketmq-externals
ocketmq-console’文件夹,执行‘mvn clean package -Dmaven.test.skip=true’,编译生成。
编译成功之后,Cmd进入‘target’文件夹,执行‘java -jar rocketmq-console-ng-2.0.0.jar’,启动‘rocketmq-console-ng-2.0.0.jar’。
3.测试
浏览器中输入‘127.0.0.1:配置端口’,成功后即可查看。