rocketMq configuration deployment (1)

When I received a company task, I wanted to use a queue. I never thought about it. The model has been selected successfully. I chose rocketmq. The specific reason is unknown.

Next, start the journey of Xiaobai

Check out rocketmq on the apache official website (a product donated by Ali to apache)

First look at a few links to help further research

RocketMQ official website

Getting Started with RocketMQ in Ten Minutes-Alibaba Middleware Team Blog

RocketMQ Best Practice NameServer

Quick Start of RocketMQ in Practice

Quick Start

Mac configuration maven environment

RocketMQ Community Projects

Microservice framework RocketMQ integrated use and monitoring

Start

The suggestion on the official website is linux, but you carefully observe the packages provided by the official website. There are 2 types, one source code and one binary. Those who like tossing can use the source code, and those who don’t like tossing directly download the binary package.

Build under win

Official website download Download binary package.zip

After decompression, I found that there is cmd in the bin directory. I am happy at this time. (Don't bother with linux, because I am not familiar with linux)

Unzip, directly on the command mqnamesrv start successfully as follows

start mqnamesrv

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Dralen>f:

F:\>cd rocketmq

F:\rocketmq>cd bin

F:\rocketmq\bin>mqnamesrv
Java HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector 
   is deprecated and will likely be removed in a future release
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will 
 likely be removed in a future release.
The Name Server boot success. serializeType=JSON

The premise is to configure java environment variables, etc., which will not be repeated here.

FAQ

1.mq environment variable

   打开mqnamesrv.cmd ,发现 ROCKETMQ_HOME 需要配置环境变量

2. Start the broker

  其实找不到类,不能加载类,这可能是个人的错误,jdk习惯的安装到类似 D:\Program Files (x86)这样的目录,但是mq 比较严格,路径上不允许有空格,所以。。。。。

start the broker

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Dralen>f:

F:\>cd rocketmq

F:\rocketmq>cd bin

F:\rocketmq\bin>set NAMESRV_ADDR=127.0.0.1:9876

F:\rocketmq\bin>mqbroker

log file

The default log file is under logs under user C:\Users\Dralen\logs\rocketmqlogs

console interface

Enter image description

If you need the code, please send me a private message.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325359968&siteId=291194637