Skip to content

Commit

Permalink
tweak doc
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed Oct 20, 2020
1 parent 26ce6de commit 43eb7af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
13 changes: 2 additions & 11 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,17 +259,8 @@ Now you can trace the info level log in logs/error.log.

## How to reload your own plugin

The Apache APISIX plugin supports hot reloading. If your APISIX node has the Admin API turned on, then for scenarios such as adding / deleting / modifying plugins, you can hot reload the plugin by calling the HTTP interface without restarting the service.

```shell
curl http://127.0.0.1:9080/apisix/admin/plugins/reload -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT
```

If your APISIX node does not open the Admin API, then you can manually load the plug-in by reloading APISIX.

```shell
apisix reload
```
The Apache APISIX plugin supports hot reloading.
See the `Hot reload` section in [plugins](./doc/plugins.md) for how to do that.

## How to make APISIX listen on multiple ports when handling HTTP or HTTPS requests?

Expand Down
12 changes: 2 additions & 10 deletions FAQ_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,9 @@ Server: APISIX web server

## 如何加载自己编写的插件

Apache APISIX 的插件支持热加载,如果你的 APISIX 节点打开了 Admin API,那么对于新增/删除/修改插件等场景,均可以通过调用 HTTP 接口的方式热加载插件,不需要重启服务
Apache APISIX 的插件支持热加载。

```shell
curl http://127.0.0.1:9080/apisix/admin/plugins/reload -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT
```

如果你的 APISIX 节点并没有打开 Admin API,那么你可以通过手动 reload APISIX 的方式加载插件。

```shell
apisix reload
```
具体怎么做参考 [插件](./doc/zh-cn/plugins.md) 中关于“热加载”的部分。

## 如何让 APISIX 在处理 HTTP 或 HTTPS 请求时监听多个端口

Expand Down
2 changes: 1 addition & 1 deletion doc/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

APISIX plug-ins are hot-loaded. No matter you add, delete or modify plug-ins, you don't need to restart the service.

Just send an HTTP request through admin API:
If your APISIX node has the Admin API turned on, just send an HTTP request through admin API:

```shell
curl http://127.0.0.1:9080/apisix/admin/plugins/reload -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT
Expand Down

0 comments on commit 43eb7af

Please sign in to comment.