You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/07/30 05:16:47 UTC
[incubator-apisix] branch master updated: doc: update Chinese
how-to-build.md (#1936)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new c6f7af6 doc: update Chinese how-to-build.md (#1936)
c6f7af6 is described below
commit c6f7af6be7ccaf5de08c93e8edcbe7542a221d23
Author: Scaat Feng <sc...@gmail.com>
AuthorDate: Thu Jul 30 13:16:37 2020 +0800
doc: update Chinese how-to-build.md (#1936)
fix #1933
---
doc/zh-cn/how-to-build.md | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/doc/zh-cn/how-to-build.md b/doc/zh-cn/how-to-build.md
index 5300491..9922ddc 100644
--- a/doc/zh-cn/how-to-build.md
+++ b/doc/zh-cn/how-to-build.md
@@ -113,12 +113,23 @@ Makefile rules:
* 直接运行:`make test`
* 指定 nginx 二进制路径:`TEST_NGINX_BINARY=/usr/local/bin/openresty prove -Itest-nginx/lib -r t`
-### 疑难排解
+### 疑难排解测试
+
+**配置 Nginx 路径**
如果遇到问题 `Error unknown directive "lua_package_path" in /API_ASPIX/incubator-apisix/t/servroot/conf/nginx.conf`
确保将openresty设置为默认的nginx并按如下所示导出路径。
* export PATH=/usr/local/openresty/nginx/sbin:$PATH
+ * Linux 默认安装路径:
+ * export PATH=/usr/local/openresty/nginx/sbin:$PATH
+ * OSx 通过homebrew默认安装路径:
+ * export PATH=/usr/local/opt/openresty/nginx/sbin:$PATH
+
+**运行单个测试用例**
+
+- 使用以下命令运行指定的测试用例:
+ - prove -Itest-nginx/lib -r t/plugin/openid-connect.t
## 5. 更新 Admin API 的 token ,保护 Apache APISIX