This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 598de4c docs: update how-to-build.md (#5136)
598de4c is described below
commit 598de4ce6873512c40ebc8fef801805b5ad3dfe8
Author: li.can <[email protected]>
AuthorDate: Wed Sep 29 11:16:23 2021 +0800
docs: update how-to-build.md (#5136)
---
docs/en/latest/how-to-build.md | 2 ++
docs/zh/latest/how-to-build.md | 18 ++++++++++--------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/docs/en/latest/how-to-build.md b/docs/en/latest/how-to-build.md
index 3598e64..09c5d7c 100644
--- a/docs/en/latest/how-to-build.md
+++ b/docs/en/latest/how-to-build.md
@@ -76,6 +76,8 @@ Please refer to: [Installing Apache APISIX with Helm
Chart](https://github.com/a
cd apisix-2.10.0
# Create dependencies
make deps
+ # Install apisix command
+ make install
```
## Step 3: Manage Apache APISIX Server
diff --git a/docs/zh/latest/how-to-build.md b/docs/zh/latest/how-to-build.md
index de08de0..7bbbb76 100644
--- a/docs/zh/latest/how-to-build.md
+++ b/docs/zh/latest/how-to-build.md
@@ -76,11 +76,13 @@ sudo yum install -y
https://github.com/apache/apisix/releases/download/2.10.0/ap
cd apisix-2.10.0
# 创建依赖
make deps
+ # 安装 apisix 命令
+ make install
```
## 步骤3:管理 Apache APISIX 服务
-我们可以在 Apache APISIX 的目录下使用命令初始化依赖、启动服务和停止服务,也可以通过 `make help` 命令查看所有命令和对应的功能。
+我们可以在 Apache APISIX 的目录下使用命令初始化依赖、启动服务和停止服务,也可以通过 `apisix help` 命令查看所有命令和对应的功能。
### 初始化依赖
@@ -88,7 +90,7 @@ sudo yum install -y
https://github.com/apache/apisix/releases/download/2.10.0/ap
```shell
# initialize NGINX config file and etcd
-make init
+apisix init
```
### 启动 Apache APISIX
@@ -97,34 +99,34 @@ make init
```shell
# start Apache APISIX server
-make run
+apisix start
```
### 停止运行 Apache APISIX
-优雅停机 `make quit` 和强制停机 `make stop`都可以停止运行 Apache APISIX。建议您优先选择优雅停机的方式停止
Apache APISIX,因为这种停止方式能够保证 Apache APISIX 完成了已经接受到的请求之后再停止;而强制停机则是立即停止 Apache
APISIX,在这种情况下,Apache APISIX 接收到但未完成的请求会随着强制停机一并停止。
+优雅停机 `apisix quit` 和强制停机 `apisix stop`都可以停止运行 Apache APISIX。建议您优先选择优雅停机的方式停止
Apache APISIX,因为这种停止方式能够保证 Apache APISIX 完成了已经接受到的请求之后再停止;而强制停机则是立即停止 Apache
APISIX,在这种情况下,Apache APISIX 接收到但未完成的请求会随着强制停机一并停止。
执行优雅停机的命令如下所示:
```shell
# stop Apache APISIX server gracefully
-make quit
+apisix quit
```
执行强制停机的命令如下所示:
```shell
# stop Apache APISIX server immediately
-make stop
+apisix stop
```
### 查看其他操作
-运行 `make help` 命令,查看返回结果,获取其他操作的命令和描述。
+运行 `apisix help` 命令,查看返回结果,获取其他操作的命令和描述。
```shell
# more actions find by `help`
-make help
+apisix help
```
## 步骤4:运行测试案例