windows下RocketMQ安装部署

Posted 还你二月花

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了windows下RocketMQ安装部署相关的知识,希望对你有一定的参考价值。

1:RocketMQ部署

参考:https://www.jianshu.com/p/4a275e779afa;

2:RocketMQ插件部署

下载:https://github.com/apache/rocketmq-dashboard;
使用:

  1. 使用docker:mvn clean package -Dmaven.test.skip=true docker:build
    或者docker pull apacherocketmq/rocketmq-console:2.0.0

  2. 不使用docker: 需要jdk1.8及以上环境:mvn spring-boot:run或者mvn clean package
    -Dmaven.test.skip=true; java -jar target/rocketmq-dashboard-1.0.1-SNAPSHOT.jar

当然,也可以使用开发工具idea导入项目,运行;
最后修改配置文件如下:

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

server.address=0.0.0.0
server.port=8080

### 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-dashboard
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
spring.http.encoding.force=true
logging.level.root=INFO
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=false
#timeout for mqadminExt, default 5000ms
rocketmq.config.timeoutMillis=
#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
#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

#set the accessKey and secretKey if you used acl
#rocketmq.config.accessKey=
#rocketmq.config.secretKey=
rocketmq.config.useTLS=false

3:访问

以上是关于windows下RocketMQ安装部署的主要内容,如果未能解决你的问题,请参考以下文章

RocketMQ在windows环境下的安装

在Windows下搭建RocketMQ

Windows下部署Apache RocketMQ

Windows 下安装 RocketMQ

Windows 下安装 RocketMQ

Windows 下安装 RocketMQ