Skip to content

Commit

Permalink
[ISSUE #405]modify the doc (#424)
Browse files Browse the repository at this point in the history
* modify the doc

* modify the doc
  • Loading branch information
tydhot authored Jul 9, 2021
1 parent 8ecbdcf commit df51d3d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
24 changes: 12 additions & 12 deletions docs/cn/instructions/eventmesh-runtime-quickstart.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sh start.sh

### 2.1 依赖

同上述步骤 1.1
同上述步骤 1.1,但是只能在JDK 1.8下构建

### 2.2 下载源码

Expand All @@ -66,17 +66,7 @@ sh start.sh

> 注:插件模块遵循eventmesh定义的spi机制,需要在对应模块中的/main/resources/META-INF/eventmesh 下配置相关接口与实现类的映射文件
**2.3.2 配置VM启动参数**

```java
-Dlog4j.configurationFile=eventmesh-runtime/conf/log4j2.xml
-Deventmesh.log.home=eventmesh-runtime/logs
-Deventmesh.home=eventmesh-runtime
-DconfPath=eventmesh-runtime/conf
```
> 注:如果操作系统为Windows, 可能需要将文件分隔符换成\
**2.3.3 配置插件**
**2.3.2 配置插件**

`eventMesh.properties`配置文件通过声明式的方式来指定项目启动后需要加载的插件

Expand All @@ -89,6 +79,16 @@ sh start.sh
eventMesh.connector.plugin.type=rocketmq
```

**2.3.3 配置VM启动参数**

```java
-Dlog4j.configurationFile=eventmesh-runtime/conf/log4j2.xml
-Deventmesh.log.home=eventmesh-runtime/logs
-Deventmesh.home=eventmesh-runtime
-DconfPath=eventmesh-runtime/conf
```
> 注:如果操作系统为Windows, 可能需要将文件分隔符换成\
**2.3.4 启动运行**

```
Expand Down
22 changes: 12 additions & 10 deletions docs/en/instructions/eventmesh-runtime-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ If you see "EventMeshTCPServer[port=10000] started....", you setup runtime succe

### 2.1 dependencies

Same with 1.1
Same with 1.1, but it can be only compiled in JDK 1.8

### 2.2 download sources

Expand All @@ -67,17 +67,9 @@ Same with 1.2
> ps: The loading of connector plugin follows the eventmesh SPI mechanism, it's necessary to configure the mapping file of
related interface and implementation class under /main/resources/meta-inf/eventmesh in the corresponding module

**2.3.2 Configure VM Options**
**2.3.2 Configure plugin**

```java
-Dlog4j.configurationFile=eventmesh-runtime/conf/log4j2.xml
-Deventmesh.log.home=eventmesh-runtime/logs
-Deventmesh.home=eventmesh-runtime
-DconfPath=eventmesh-runtime/conf
```
> ps: If you use Windows, you may need to replace the file separator to \
**2.3.3 Configure plugin**

Specify the connector plugin that will be loaded after the project start by declaring in `eventMesh.properties`

Expand All @@ -90,6 +82,16 @@ load **rocketmq connector** configuration:
eventMesh.connector.plugin.type=rocketmq
```

**2.3.3 Configure VM Options**

```java
-Dlog4j.configurationFile=eventmesh-runtime/conf/log4j2.xml
-Deventmesh.log.home=eventmesh-runtime/logs
-Deventmesh.home=eventmesh-runtime
-DconfPath=eventmesh-runtime/conf
```
> ps: If you use Windows, you may need to replace the file separator to \
**2.3.4 Run**

running `org.apache.eventmesh.starter.StartUp` main method
Expand Down

0 comments on commit df51d3d

Please sign in to comment.