Windows 版本 源码启动

git clone [email protected]:apache/rocketmq.git


下载目录如下:

H:\work\System\GithubWorkspace\rocketmq

在NamesrvStartup.java里面的



            if (null == namesrvConfig.getRocketmqHome()) {
                System.out.printf("Please set the %s variable in your environment to match the location of the RocketMQ installation%n", MixAll.ROCKETMQ_HOME_ENV);
                System.exit(-2);

            }

前面加一句:

            namesrvConfig.setRocketmqHome("H:\\work\\System\\GithubWorkspace\\rocketmq\\distribution");

RocketMq Intellij Idea启动(Windows)


启动NamesrvStartup.java里面的main方法

The Name Server boot success. serializeType=JSON

看到上面这句话说明启动成功了

接下来启动Broker:

首先在

if (null == brokerConfig.getRocketmqHome()) {
    System.out.printf("Please set the " + MixAll.ROCKETMQ_HOME_ENV
        + " variable in your environment to match the location of the RocketMQ installation");
    System.exit(-2);
}

前面添加以下内容

brokerConfig.setRocketmqHome("H:\\work\\System\\GithubWorkspace\\rocketmq\\distribution");


RocketMq Intellij Idea启动(Windows)

然后启动

BrokerStartup.java里面的main方法



具体日志请查看用户目录:

C:\Users\lee\logs\rocketmqlogs

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2021-12-21
  • 2021-08-22
  • 2021-08-28
  • 2021-08-26
猜你喜欢
  • 2021-08-18
  • 2021-06-14
  • 2021-08-19
  • 2022-12-23
  • 2021-07-08
  • 2021-07-03
  • 2021-09-20
相关资源
相似解决方案