Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update how-to-build.md #1936

Merged
merged 1 commit into from
Jul 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion doc/zh-cn/how-to-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down