您现在的位置是:首页 > 文章详情

RocketMQ 学习之路 | 第二章 :RocketMQ-console的安装

日期:2019-05-04点击:777

一.介绍
rocketmq有一个对其扩展的开源项目,github:https://github.com/apache/rocketmq-externals 。 其中有一个子模块rocketmq-console,该子模块提供为rocketmq提供可视化的监控界面。

二.下载rocketmq-externals ,并解压

image

unzip rocketmq-externals-master.zip
cd rocketmq-externals-master/

三. 进入rocketmq-console子模块

cd rocketmq-console/

四. 修改配置文件
编辑rocketmq-externals-master/rocketmq-console/src/main/resources/application.properties .

修改端口号: server.port , 监听的服务地址:rocketmq.config.namesrvAddr , 数据存放位置:rocketmq.config.dataPath
示例:

 server.contextPath= #端口号 server.port=9000 ### SSL setting #server.ssl.key-store=classpath:rmqcngkeystore.jks #server.ssl.key-store-password=rocketmq #server.ssl.keyStoreType=PKCS12 #server.ssl.keyAlias=rmqcngkey #spring.application.index=true spring.application.name=rocketmq-console spring.http.encoding.charset=UTF-8 spring.http.encoding.enabled=true spring.http.encoding.force=true logging.config=classpath:logback.xml #if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876 #监听地址, 多个用","隔开。 rocketmq.config.namesrvAddr=localhost:9876 #if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true rocketmq.config.isVIPChannel= #rocketmq-console's data path:dashboard/monitor ## 数据存放地址 rocketmq.config.dataPath=/Users/zhengjinyou/logs/rocketmqconsole/data #set it false if you don't want use dashboard.default true rocketmq.config.enableDashBoardCollect=true #set the message track trace topic if you don't want use the default one rocketmq.config.msgTrackTopicName= rocketmq.config.ticketKey=ticket #Must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required rocketmq.config.loginRequired=false

五.编译打包rocketmq-console

只需要编译打包子模块即可
mvn clean package -Dmaven.test.skip=true

六.运行打包后的jar

java -jar target/rocketmq-console-ng-1.0.1.jar

七.访问地址

访问监控主页:http://localhost:9000/
如下图:
image

原文链接:https://yq.aliyun.com/articles/701206
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章