From 43eb7af2e0026706ad6eb4326695d37af86cb948 Mon Sep 17 00:00:00 2001 From: spacewander Date: Mon, 19 Oct 2020 10:29:28 +0800 Subject: [PATCH] tweak doc --- FAQ.md | 13 ++----------- FAQ_CN.md | 12 ++---------- doc/plugins.md | 2 +- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/FAQ.md b/FAQ.md index e8fc85a1d2bac..d6f770273b112 100644 --- a/FAQ.md +++ b/FAQ.md @@ -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? diff --git a/FAQ_CN.md b/FAQ_CN.md index 77f1d0e48524f..6dd65cbc6565e 100644 --- a/FAQ_CN.md +++ b/FAQ_CN.md @@ -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 请求时监听多个端口 diff --git a/doc/plugins.md b/doc/plugins.md index 5495bd501bd76..9d923c56417ac 100644 --- a/doc/plugins.md +++ b/doc/plugins.md @@ -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