当前位置: 首页 > news >正文

RocketMQ可视化界面安装

RocketMQ可视化界面安装

**起因:**访问rocketmq-externals项目的git地址,下载了源码,在目录中并没有找到rocketmq-console文件夹。
在这里插入图片描述
git下面文档提示rocketMQ的仪表板转移到了新的项目中,点击仪表板到新项目地址;

  1. 下载源码

  2. 进入到项目的resources资源目录下

    rocketmq-dashboard\src\main\resources

  3. 编辑application.yml配置文件,配置控制台的端口号和nameServer地址。
    在这里插入图片描述

  4. 在项目根目录下打开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文件,注释以下两个插件

    <!--    <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-checkstyle-plugin</artifactId><version>2.17</version><executions><execution><id>validate</id><phase>validate</phase><configuration><excludes>src/main/resources</excludes><configLocation>style/rmq_checkstyle.xml</configLocation><encoding>UTF-8</encoding><consoleOutput>true</consoleOutput><failsOnError>true</failsOnError></configuration><goals><goal>check</goal></goals></execution></executions></plugin>-->
    <!--    <plugin><groupId>com.github.eirslett</groupId><artifactId>frontend-maven-plugin</artifactId><version>1.11.3</version><configuration><workingDirectory>frontend</workingDirectory><installDirectory>target</installDirectory></configuration><executions><execution><id>install node and yarn</id><goals><goal>install-node-and-yarn</goal></goals><configuration><nodeVersion>v16.2.0</nodeVersion><yarnVersion>v1.22.10</yarnVersion></configuration></execution><execution><id>yarn install</id><goals><goal>yarn</goal></goals><configuration><arguments>install</arguments></configuration></execution><execution><id>yarn build</id><goals><goal>yarn</goal></goals><configuration><arguments>build</arguments></configuration></execution></executions></plugin> -->

    还有另一异常:

    
    [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\target/classes/public">... @ 4:83 in D:\ProgramFiles\RocketMQ\rocketmq-dashboard\target\antrun\build-main.xml
    

    解决:在 rocketmq-dashboard\frontend 建一个build文件夹,然后再target目录下,建一个classes文件夹,classes下再建一个public文件夹

  5. 执行mvn命令

    mvn install -Dmaven.test.skip=true
    
  6. 执行成功后,target目录下会有一个jar包,然后执行java命令运行就可以了。

  7. 访问:127.0.0.1:9998 (jar运行的服务器地址 : xml中配置的端口号)

    在这里插入图片描述相关文章链接:
    https://blog.csdn.net/qq_45515766/article/details/126360526

https://blog.csdn.net/xiaoyiny/article/details/132134052

http://www.lryc.cn/news/368418.html

相关文章:

  • 【ffmpeg】本地格式转换 mp4转wav||裁剪mp4
  • 基于Django+MySQL的智慧校园系统
  • Linux基础指令(一)
  • 三极管十大品牌
  • 需求记录(共享元素)
  • .Net 使用 MongoDB
  • 【TensorFlow深度学习】值函数估计:蒙特卡洛方法与TD学习
  • 成功解决ModuleNotFoundError: No module named ‘cv2’
  • 中国蚁剑 安装教程 2024年5月
  • Golang-分离式加载器(传参)AES加密
  • 速览三版HTTP的改进策略
  • window.open(“.html“,“_blank“) 执行是下载,并没有打开新窗口显示html
  • 【QT5.14.2】编译MQTT库example的时候报No such file or directory
  • 【数据结构】前缀树(字典树)汇总
  • Linux:基础开发工具
  • HarmonyOS NEXT Push接入
  • 如何快速入门Element-UI:打造高效美观的前端界面
  • Langchain的向量存储 - Document示例代码里的疑问
  • Docker 教程-介绍-2
  • 【2024最新华为OD-C/D卷试题汇总】[支持在线评测] 伐木工(200分) - 三语言AC题解(Python/Java/Cpp)
  • UltraScale+系列模块化仪器,可以同时用作控制器、算法加速器和高速数字信号处理器
  • Python与其他编程语言(如Java、C++)相比有哪些优势?
  • Edge浏览器双击关闭标签页,双击关闭浏览器选项卡
  • C++ 贪心算法——跳跃游戏、划分字母区间
  • 汽车数据应用构想(三)
  • 体素技术在AI绘画中的革新作用
  • Leetcode.866 回文质数
  • 【论文阅读】Point2RBox (CVPR’2024)
  • 深度学习的点云分割
  • 【知识点】c++模板特化