RocketMQ可视化界面安装
**起因:**访问rocketmq-externals项目的git地址,下载了源码,在目录中并没有找到rocketmq-console文件夹。
git下面文档提示rocketMQ的仪表板转移到了新的项目中,点击仪表板到新项目地址;
下载源码
进入到项目的resources资源目录下
rocketmq-dashboard\src\main\resources
编辑application.yml配置文件,配置控制台的端口号和nameServer地址。
在项目根目录下打开git命令窗,执行
mvn clean package -Dmaven.test.skip=true
admin@DESKTOP-G6MAR8U MINGW64 /d/Program/rocketmq-dashboard (master) $ mvn clean package -Dmaven.test.skip=true
**注意:**在这里可能会打包失败,
具体异常:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.3:yarn (yarn install) on project rocketmq-dashboard: Failed to run task: 'yarn install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
解决方法:
打开项目中的pom.xml文件,注释以下两个插件
<!-- org.apache.maven.plugins maven-checkstyle-plugin 2.17 validate validate src/main/resources style/rmq_checkstyle.xml UTF-8 true true check --> <!-- com.github.eirslett frontend-maven-plugin 1.11.3 frontend target install node and yarn install-node-and-yarn v16.2.0 v1.22.10 yarn install yarn install yarn build yarn build -->
还有另一异常:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project rocketmq-dashboard: An Ant BuildException has occured: D:\ProgramFiles\RocketMQ\rocketmq-dashboard\frontend\build does not exist. [ERROR] around Ant part ...<copy todir="D:\ProgramFiles\RocketMQ\rocketmq-dashboard arget/classes/public">... @ 4:83 in D:\ProgramFiles\RocketMQ\rocketmq-dashboard arget\antrun\build-main.xml
解决:在 rocketmq-dashboard\frontend 建一个build文件夹,然后再target目录下,建一个classes文件夹,classes下再建一个public文件夹
执行mvn命令
mvn install -Dmaven.test.skip=true
执行成功后,target目录下会有一个jar包,然后执行java命令运行就可以了。
访问:127.0.0.1:9998 (jar运行的服务器地址 : xml中配置的端口号)
相关文章链接:
http://blog.csdn.net/qq_45515766/article/details/126360526
http://blog.csdn.net/xiaoyiny/article/details/132134052