From df51d3d5b8975259e5901b3c8dc0b46319284ce3 Mon Sep 17 00:00:00 2001 From: YuDong Tang <583125614@qq.com> Date: Fri, 9 Jul 2021 16:06:10 +0800 Subject: [PATCH] [ISSUE #405]modify the doc (#424) * modify the doc * modify the doc --- .../eventmesh-runtime-quickstart.zh-CN.md | 24 +++++++++---------- .../eventmesh-runtime-quickstart.md | 22 +++++++++-------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/docs/cn/instructions/eventmesh-runtime-quickstart.zh-CN.md b/docs/cn/instructions/eventmesh-runtime-quickstart.zh-CN.md index ecafc29f6e..6ae41fa431 100644 --- a/docs/cn/instructions/eventmesh-runtime-quickstart.zh-CN.md +++ b/docs/cn/instructions/eventmesh-runtime-quickstart.zh-CN.md @@ -44,7 +44,7 @@ sh start.sh ### 2.1 依赖 -同上述步骤 1.1 +同上述步骤 1.1,但是只能在JDK 1.8下构建 ### 2.2 下载源码 @@ -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`配置文件通过声明式的方式来指定项目启动后需要加载的插件 @@ -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 启动运行** ``` diff --git a/docs/en/instructions/eventmesh-runtime-quickstart.md b/docs/en/instructions/eventmesh-runtime-quickstart.md index dd89795f3d..62b315c57e 100644 --- a/docs/en/instructions/eventmesh-runtime-quickstart.md +++ b/docs/en/instructions/eventmesh-runtime-quickstart.md @@ -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 @@ -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` @@ -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