on project rocketmq-dashboard: Failed to run task: ‘yarn install’ failed. org.
最新Windows环境下搭建RocketMQ及其控制台环境
1. 搭建RocketMQ
1.1 下载RocketMQ
官网下载地址:https://rocketmq.apache.org/release_notes
选择合适的版本下载Binary
下载之后解压:
1.2 配置RocketMQ环境变量
1.3 启动NAMESERVER
打开CMD
进入D:\Develop\RocketMQ\rocketmq-all-4.5.1-bin-release\bin
目录,输入:
弹出的窗口不要关闭!
1.4 启动BROKER
在D:\Develop\RocketMQ\rocketmq-all-4.5.1-bin-release\bin
目录下,再启动一个CMD,输入
弹出的窗口也不要关闭!
2. 安装官方控制台扩展
网上很多教程都是说在:https://github.com/apache/rocketmq-externals这个项目里,现在已经独立出一个项目了!
真正的地址:https://github.com/apache/rocketmq-externals
从github把项目拉下来:
用idea打开项目,修改配置文件。
可以直接启动:
或者打包,在启动
我选择后者。
报错: 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] 解决方案: https://github.com/apache/rocketmq-dashboard/issues/53 把pom.xml中的frontend-maven-plugin和maven-antrun-plugin插件注释掉就能打包成功了
运行:
控制台各个页面使用的文档:https://github.com/apache/rocketmq-dashboard/blob/master/docs/1_0_0/UserGuide_CN.md