当前位置:   article > 正文

rokectmq console mac 安装_mac 安装 rocketmq-console-ng-2.0.0.jar

mac 安装 rocketmq-console-ng-2.0.0.jar

一、克隆代码

git clone https://github.com/apache/rocketmq-externals

 

二、修改配置文件

使用默认配置启动rokectmq这里可以不改

端口默认8080,我这里改为8081

  1. cd rocketmq-externals/rocketmq-console/
  2. vi src/main/resources/application.properties
  3. #管理后台访问上下文路径,默认为空,如果填写,一定要前面加“/”,后面不要加,否则启动报错
  4. server.contextPath=/rocketmq
  5. #访问端口
  6. server.port=8081
  7. #spring.application.index=true
  8. spring.application.name=rocketmq-console
  9. spring.http.encoding.charset=UTF-8
  10. spring.http.encoding.enabled=true
  11. spring.http.encoding.force=true
  12. #logback配置文件路径
  13. logging.config=classpath:logback.xml
  14. #if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876
  15. #Name Server地址,修改成你自己的服务地址
  16. rocketmq.config.namesrvAddr=localhost:9876
  17. #if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
  18. rocketmq.config.isVIPChannel=
  19. #rocketmq-console's data path:dashboard/monitor
  20. rocketmq.config.dataPath=/tmp/rocketmq-console/data
  21. #set it false if you don't want use dashboard.default true
  22. rocketmq.config.enableDashBoardCollect=true

 

三、打包运行

  1. mvn clean package -Dmaven.test.skip=true
  2. java -jar target/rocketmq-console-ng-2.0.0.jar
  3. #如果配置文件没有填写Name Server
  4. $ java -jar target/rocketmq-console-ng-2.0.0.jar --rocketmq.config.namesrvAddr='localhost:9876'

 

四、访问地址localhost:8081

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/877380
推荐阅读
相关标签
  

闽ICP备14008679号