首先执行 mqnamesrv.cmd
mqnamesrv.cmd -n localhost:9876
再执行 mqbroker.cmd
mqbroker.cmd -n localhost:9876 autoCreateTopicEnable=true
可视化
工具在置顶链接有下载地址。
需要修改配置文件
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 下执行命令
mvn clean package -Dmaven.test.skip=true
最后运行
java -jar rocketmq-console-ng-2.0.0.jar
访问 127.0.0.1:8080, 就可以看到界面