This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-website.git
commit 6bac8201993486e6579cfd6d2977d19412ac729f Author: surechen <[email protected]> AuthorDate: Fri Aug 9 14:35:15 2019 +0800 Add a quick start case for mersher. Signed-off-by: surechen <[email protected]> --- _docs/cn/mersher-quick-start.md | 4 ++-- _docs/mersher-quick-start.md | 32 ++++++++++++++++---------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/_docs/cn/mersher-quick-start.md b/_docs/cn/mersher-quick-start.md index 93a9b93..754f55d 100644 --- a/_docs/cn/mersher-quick-start.md +++ b/_docs/cn/mersher-quick-start.md @@ -30,7 +30,7 @@ _您可以通过阅读[环境配置](/cn/users/setup-environment/#运行service- ## 案例背景 -- 本用例主要是帮助用户快速入门**mersher sidecar模式**;希望用户通过该例子,快速上手使用mersher服务,了解mersher的工作模式,并了解如何通过mersher的帮助改造已有的http服务,接入ServiceComb微服务体系,得到go-chassis微服务框架提供的负载均衡、流控、服务治理、调用链追踪等微服务能力。 +- 本用例主要是帮助用户快速入门**mersher sidecar模式**;希望用户通过该例子,快速上手使用mersher服务,了解mersher的工作模式,并了解如何通过mersher的帮助改造已有的http服务,接入ServiceComb微服务体系,得到go-chassis微服务框架提供的负载均衡、流控、服务治理、调用链追踪等微服务能力。完整案例将提交至[案例下载](https://github.com/apache/servicecomb-mesher/tree/master/examples/quick_start). ## 用例服务介绍 @@ -132,7 +132,7 @@ _您可以通过阅读[环境配置](/cn/users/setup-environment/#运行service- - 6、运行**http_server.py**程序,需要安装python2.7,依赖BaseHTTPServer包; -- 7、 使用[**Bmi体质指数**](/cn/docs/quick-start.md/) 中的webapp作为展示服务,将webapp/src/main/resources/static/index.html 静态页面中 ajax调用的地址从/calculator/bmi?height=改为[]()<http://192.168.88.64:4538/bmi?height=> 这个地址是httpservergateway客户端服务的监听地址; +- 7、 使用[**Bmi体质指数**](/cn/docs/quick-start.md/) 中的webapp作为展示服务,将webapp/src/main/resources/static/index.html 静态页面中 ajax调用的地址从/calculator/bmi?height=改为[]()<http://192.168.88.64:4538/bmi?height=> 这个地址是httpservergateway客户端服务的监听地址,更新application.yaml中的监听端口为192.168.88.64; ## 开始测试 diff --git a/_docs/mersher-quick-start.md b/_docs/mersher-quick-start.md index fcbaa5a..bb6cb00 100644 --- a/_docs/mersher-quick-start.md +++ b/_docs/mersher-quick-start.md @@ -30,7 +30,7 @@ _Reference to [service center deployment](/users/setup-environment/#运行servic ## Background -- This use case is mainly to help users get started quickly with **mersher sidecar mode**. We hope that users can understand the working mode of mersher and learn how to merge the existing http service into the ServiceComb micro-service system with mersher's help. The final goal is to help user get the micro-service capabilities such as load balancing, flow control, service management and call chain tracing provided by servicecomb. +- This use case is mainly to help users get started quickly with **mersher sidecar mode**. We hope that users can understand the working mode of mersher and learn how to merge the existing http service into the ServiceComb micro-service system with mersher's help. The final goal is to help user get the micro-service capabilities such as load balancing, flow control, service management and call chain tracing provided by servicecomb. The full case will be submitted to [Case Download](https [...] ## Mersher use case service introduction @@ -104,22 +104,22 @@ _Reference to [service center deployment](/users/setup-environment/#运行servic - 4 Start running mersher-g, mersher-a and mersher-b respectively by cmd. -```bash -cd /usr/local/src/mersher-a -export SPECIFIC_ADDR=127.0.0.1:4537 -./mersher -``` + ```bash + cd /usr/local/src/mersher-a + export SPECIFIC_ADDR=127.0.0.1:4537 + ./mersher + ``` -```bash -cd /usr/local/src/mersher-b -export SPECIFIC_ADDR=127.0.0.1:4540 -./mersher -``` + ```bash + cd /usr/local/src/mersher-b + export SPECIFIC_ADDR=127.0.0.1:4540 + ./mersher + ``` -```bash -cd /usr/local/src/mersher-g -./mersher -``` + ```bash + cd /usr/local/src/mersher-g + ./mersher + ``` - 5 Use **httpserver** to provide http service. Use **httpserver-gateway** as the client to execute http request to **httpserver**. @@ -132,7 +132,7 @@ cd /usr/local/src/mersher-g - 6 Run **http_server.py** program. You need to install python2.7 and this service relies on BaseHTTPServer package. -- 7 Use webapp as a user interface which is in [**Bmi-example**](/docs/quick-start.md/). Edit http address of the ajax call from /calculator/bmi?height= to []()<http://192.168.88.64:4538/bmi?height=> in static page webapp/src/main/resources/static/index.html. This address is the listening address of the httpservergateway. +- 7 Use webapp as a user interface which is in [**Bmi-example**](/docs/quick-start.md/). Edit http address of the ajax call from /calculator/bmi?height= to []()<http://192.168.88.64:4538/bmi?height=> in static page webapp/src/main/resources/static/index.html. This address is the listening address of the httpservergateway. Update the listening port configuration in application.yaml to 192.168.88.64. ## Start testing
