diff --git a/docs/cn/Debug_In_Idea.md b/docs/cn/Debug_In_Idea.md index fd01751ee99..92cb8010efc 100644 --- a/docs/cn/Debug_In_Idea.md +++ b/docs/cn/Debug_In_Idea.md @@ -6,7 +6,7 @@ ### Step1: 启动NameServer 1. NamerServer的启动类在`org.apache.rocketmq.namesrv.NamesrvStartup` -2. `Idea-Edit Configurations`中添加运行参数 `ROCKETMQ_HOME=` +2. `Idea-Edit Configurations`中添加环境变量 `ROCKETMQ_HOME=` ![Idea_config_nameserver.png](image/Idea_config_nameserver.png) 3. 运行NameServer,观察到如下日志输出则启动成功 ```shell @@ -26,9 +26,9 @@ deleteWhen = 04 fileReservedTime = 48 brokerRole = ASYNC_MASTER flushDiskType = ASYNC_FLUSH -namesrvAddr = 127.0.0.1:9876 # name server地址 +namesrvAddr = 127.0.0.1:9876 ``` -3. `Idea-Edit Configurations`中添加运行参数 `ROCKETMQ_HOME=` 以及环境变量`-c /Users/xxx/rocketmq/conf/broker.conf` +3. `Idea-Edit Configurations`中添加运行参数 `-c /Users/xxx/rocketmq/conf/broker.conf` 以及环境变量 `ROCKETMQ_HOME=` ![Idea_config_broker.png](image/Idea_config_broker.png) 4. 运行Broker,观察到如下日志则启动成功 ```shell @@ -40,7 +40,7 @@ The broker[broker-a,192.169.1.2:10911] boot success... ### 补充:本地启动Proxy 1. RocketMQ5.x支持了Proxy模式,使用`LOCAL`模式可以免去`Step2`,启动类在`org.apache.rocketmq.proxy.ProxyStartup` -2. `Idea-Edit Configurations`中添加运行参数 `ROCKETMQ_HOME=` +2. `Idea-Edit Configurations`中添加环境变量 `ROCKETMQ_HOME=` 3. 在`/conf/`下新建配置文件`rmq-proxy.json` ```json { diff --git a/docs/en/Debug_In_Idea.md b/docs/en/Debug_In_Idea.md index 9967980671f..0dee9039c40 100644 --- a/docs/en/Debug_In_Idea.md +++ b/docs/en/Debug_In_Idea.md @@ -6,7 +6,7 @@ ### Step1: Start NameServer 1. The startup class for NameServer is located in `org.apache.rocketmq.namesrv.NamesrvStartup`. -2. Add runtime `ROCKETMQ_HOME=` parameters in `Idea-Edit Configurations`. +2. Add environment variable `ROCKETMQ_HOME=` in `Idea-Edit Configurations`. ![Idea_config_nameserver.png](../cn/image/Idea_config_nameserver.png) 3. Run NameServer and if the following log output is observed, it indicates successful startup. ```shell @@ -26,9 +26,9 @@ deleteWhen = 04 fileReservedTime = 48 brokerRole = ASYNC_MASTER flushDiskType = ASYNC_FLUSH -namesrvAddr = 127.0.0.1:9876 # name server地址 +namesrvAddr = 127.0.0.1:9876 ``` -3. Add the runtime parameter `ROCKETMQ_HOME=` and the environment variable `-c /Users/xxx/rocketmq/conf/broker.conf` in `Idea-Edit Configurations`. +3. Add the runtime parameter `-c /Users/xxx/rocketmq/conf/broker.conf` and the environment variable `ROCKETMQ_HOME=` in `Idea-Edit Configurations`. ![Idea_config_broker.png](../cn/image/Idea_config_broker.png) 4. Run the Broker and if the following log is observed, it indicates successful startup. ```shell @@ -40,7 +40,7 @@ RocketMQ startup is now complete. You can use the examples provided in `/example ### Additional: Start the Proxy locally. 1. RocketMQ 5.x introduced the Proxy mode. Using the `LOCAL` mode eliminates the need for `Step2`. The startup class is located at `org.apache.rocketmq.proxy.ProxyStartup`. -2. Add the runtime parameter `ROCKETMQ_HOME=` in `Idea-Edit Configurations`. +2. Add the environment variable `ROCKETMQ_HOME=` in `Idea-Edit Configurations`. 3. Create a new configuration file named `rmq-proxy.json` in the `/conf/` directory. ```json {