赞
踩
一、克隆代码
git clone https://github.com/apache/rocketmq-externals
二、修改配置文件
使用默认配置启动rokectmq这里可以不改
端口默认8080,我这里改为8081
- cd rocketmq-externals/rocketmq-console/
- vi src/main/resources/application.properties
- #管理后台访问上下文路径,默认为空,如果填写,一定要前面加“/”,后面不要加,否则启动报错
- server.contextPath=/rocketmq
- #访问端口
- server.port=8081
- #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
- #logback配置文件路径
- 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
- #Name Server地址,修改成你自己的服务地址
- 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=/tmp/rocketmq-console/data
- #set it false if you don't want use dashboard.default true
- rocketmq.config.enableDashBoardCollect=true
三、打包运行
- mvn clean package -Dmaven.test.skip=true
- java -jar target/rocketmq-console-ng-2.0.0.jar
- #如果配置文件没有填写Name Server
- $ java -jar target/rocketmq-console-ng-2.0.0.jar --rocketmq.config.namesrvAddr='localhost:9876'
四、访问地址localhost:8081
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。