下载源码
进入 roccketmq-console
cd roccketmq-console
编译打包
mvn clean package -Dmaven.test.skip=true
存在问题
[ERROR] Failed to execute goal on project rocketmq-console-ng: Could not resolve dependencies for project org.apache:rocketmq-console-ng:jar:1.0.0: The following artifacts could not be resolved: org.apache.rocketmq:rocketmq-tools:jar:4.4.0-SNAPSHOT, org.apache.rocketmq:rocketmq-namesrv:jar:4.4.0-SNAPSHOT, org.apache.rocketmq:rocketmq-broker:jar:4.4.0-SNAPSHOT: Could not find artifact org.apache.rocketmq:rocketmq-tools:jar:4.4.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
因为roccketmq-console 里面 pom.xml 版本问题
解决
<rocketmq.version>4.4.0-SNAPSHOT</rocketmq.version> 改为 <rocketmq.version>4.4.0</rocketmq.version>
进入target目录
cd target
通过java -jar的方式运行
java -jar rocketmq-console-ng-1.0.0.jar
启动后是 8080端口
其他常见问题
- 无法连接获取broker信息
修改配置文件,名称路由地址为 namesrvAddr,例如我本机地址为: src/main/resources/application.propertiesrocketmq.config.namesrvAddr=127.0.0.1:9876
- 连接不成功
在阿里云,腾讯云或者虚拟机,记得检查端口号和防火墙是否启动
阿里云控制台有安全组,需要开放对应的端口
-
需要重新打包编译启动
mvn clean package -Dmaven.test.skip=true
java -jar rocketmq-console-ng-1.0.0.jar