github拉取最新源码
GitHub - apache/rocketmq-externals: Mirror of Apache RocketMQ (Incubating)
切换分支release-rocketmq-console-1.0.0
拉取分支release-rocketmq-console-1.0.0源码
修改 application.properties 配置文件
路径:rocketmq-externalsrocketmq-consolesrcmainresourcesapplication.properties
server.contextPath=
server.port=8080
#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
编译rocketmq-console
在rocketmq-externalsrocketmq-console目录下执行编译命令
编译命令:mvn clean package -Dmaven.test.skip=true
在 target 目录中生成包 rocketmq-console-ng-1.0.0.jar
运行 rocketmq-console-ng-1.0.0.jar
进入target目录执行命令:
java -jar rocketmq-console-ng-1.0.0.jar
rocketmq-console启动成功
访问控制台
http://localhost:8080/#/