This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-website.git
The following commit(s) were added to refs/heads/master by this push:
new 4f02a19 fix documents link error and example code error (#224)
4f02a19 is described below
commit 4f02a1956f6dc5a5b530834940af4a503e6846ae
Author: bao liu <[email protected]>
AuthorDate: Thu Nov 28 17:13:13 2019 +0800
fix documents link error and example code error (#224)
---
_docs/cn/quick-start.md | 14 +++++++-------
_docs/quick-start.md | 12 ++++++------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/_docs/cn/quick-start.md b/_docs/cn/quick-start.md
index b80b49f..a14b284 100755
--- a/_docs/cn/quick-start.md
+++ b/_docs/cn/quick-start.md
@@ -16,12 +16,12 @@ last_modified_at: 2017-09-03T10:01:43-04:00
* 安装Maven
3.x,详情可参考[Maven安装教程](https://maven.apache.org/install.html){:target="_blank"}。
-* 安装 ServiceComb Java Chassis(SDK),执行以下指令:
+* 下载ServiceComb-Sample
```bash
- git clone https://github.com/apache/servicecomb-java-chassis.git
- cd servicecomb-java-chassis
- mvn clean install -DskipTests
+ git clone https://github.com/apache/servicecomb-samples.git
+ cd servicecomb-samples/java-chassis-samples/bmi
+ mvn clean install
```
## 运行 Service Center
@@ -30,10 +30,10 @@ last_modified_at: 2017-09-03T10:01:43-04:00
docker pull servicecomb/service-center
docker run -d -p 30100:30100 servicecomb/service-center:latest
```
-*您可以通过阅读[环境配置](/cn/users/setup-environment/#运行service-center)获取在本地以二进制方式运行Service
Center的方法。*
+*您可以通过阅读[环境安装](/cn/docs/service-center/install/)获取在本地以二进制方式运行Service
Center的方法。*
## 创建第一个微服务
-本指南将以一个简单的 **体质指数(BMI)**
应用开展微服务之旅。[体质指数](https://baike.baidu.com/item/BMI%E6%8C%87%E6%95%B0){:target="_blank"}主要用于衡量人体胖瘦程度。该应用主要包含两个微服务:
+本指南将以一个简单的 **体质指数(BMI)**
应用开展微服务之旅。[体质指数](https://baike.baidu.com/item/%E4%BD%93%E8%B4%A8%E6%8C%87%E6%95%B0){:target="_blank"}主要用于衡量人体胖瘦程度。该应用主要包含两个微服务:
* **体质指数计算器**:负责处理运算事务。
@@ -49,7 +49,7 @@ docker run -d -p 30100:30100 servicecomb/service-center:latest
1. 进入 **体质指数** 应用代码目录。
```bash
- cd samples/bmi
+ cd servicecomb-samples/java-chassis-samples/bmi
```
**注意**:在windows开发环境下,docker是在虚拟机中启动,因此需要修改微服务的 **Service Center**
IP地址为虚拟机IP地址。修改2个配置文件[calculator\|webapp]/src/main/resources/microservice.yaml,将其中<a>http://127.0.0.1:30100</a>修改为<a>http://192.168.99.100:30100</a>,其中192.168.99.100是虚拟机IP,需要与开发环境中的虚拟机IP保持一致。
diff --git a/_docs/quick-start.md b/_docs/quick-start.md
index 287aa9e..1409e04 100755
--- a/_docs/quick-start.md
+++ b/_docs/quick-start.md
@@ -16,12 +16,12 @@ last_modified_at: 2017-09-06T00:50:43-55:00
* Install Maven 3.x, details can refer to [Maven Installing
Guide](https://maven.apache.org/install.html){:target="_blank"}.
-* Install ServiceComb Java Chassis(SDK) by executing the following commands.
+* Download ServiceComb-Samples.
```bash
- git clone https://github.com/apache/servicecomb-java-chassis.git
- cd servicecomb-java-chassis
- mvn clean install -DskipTests
+ git clone https://github.com/apache/servicecomb-samples.git
+ cd servicecomb-samples/java-chassis-samples/bmi
+ mvn clean install
```
## Run Service Center
@@ -30,7 +30,7 @@ last_modified_at: 2017-09-06T00:50:43-55:00
docker pull servicecomb/service-center
docker run -d -p 30100:30100 servicecomb/service-center:latest
```
-*Reference to [service center
deployment](/users/setup-environment/#运行service-center) to learn deploying
Service Center as a local binary.*
+*Reference to [Install of ServiceCenter](/docs/service-center/install/) to
learn deploying Service Center as a local binary.*
## Create your first microservice application
Let\'s start the journey of microservice with a simple **Body Mass
Index(BMI)** application. The
[BMI](https://en.wikipedia.org/wiki/Body_mass_index){:target="_blank"} is an
attempt to quantify the amount of tissue mass in an individual. This
application contains two separate microservices:
@@ -49,7 +49,7 @@ Note that the dotted lines indicate the process of service
registration and disc
1. Enter BMI codes directory.
```bash
- cd samples/bmi
+ cd servicecomb-samples/java-chassis-samples/bmi
```
**Note**: In windows development environment, the docker runs inside the
virtual machine. The IP address of **Service Center** needs to be modified as
the virtual machine\'s IP address. Modify the 2 configuration files
[calculator\|webapp]/src/main/resources/microservice.yaml, changed
<a>http://127.0.0.1:30100</a> to <a>http://192.168.99.100:30100</a> , where
192.168.99.100 is the virtual machine\'s IP address.