mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 12:07:35 +08:00
build: make uninstall related files of runtime (#6236)
Co-authored-by: leslie <59061168+leslie-tsang@users.noreply.github.com>
This commit is contained in:
parent
d96d2d8386
commit
e067d341a3
11
Makefile
11
Makefile
@ -35,6 +35,7 @@ ENV_APISIX ?= $(CURDIR)/bin/apisix
|
||||
ENV_GIT ?= git
|
||||
ENV_TAR ?= tar
|
||||
ENV_INSTALL ?= install
|
||||
ENV_RM ?= rm -vf
|
||||
ENV_DOCKER ?= docker
|
||||
ENV_DOCKER_COMPOSE ?= docker-compose --project-directory $(CURDIR) -p $(project_name) -f $(project_compose_ci)
|
||||
ENV_NGINX ?= $(ENV_NGINX_EXEC) -p $(CURDIR) -c $(CURDIR)/conf/nginx.conf
|
||||
@ -340,6 +341,16 @@ install: runtime
|
||||
$(ENV_INSTALL) apisix/plugins/slslog/*.lua $(ENV_INST_LUADIR)/apisix/plugins/slslog/
|
||||
|
||||
|
||||
### uninstall : Uninstall the apisix
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
@$(call func_echo_status, "$@ -> [ Start ]")
|
||||
$(ENV_RM) -r /usr/local/apisix
|
||||
$(ENV_RM) -r $(ENV_INST_LUADIR)/apisix
|
||||
$(ENV_RM) $(ENV_INST_BINDIR)/apisix
|
||||
@$(call func_echo_success_status, "$@ -> [ Done ]")
|
||||
|
||||
|
||||
### test : Run the test case
|
||||
.PHONY: test
|
||||
test: runtime
|
||||
|
@ -117,6 +117,15 @@ Please refer to: [Installing Apache APISIX with Helm Chart](https://github.com/a
|
||||
|
||||
Solution: set `LDAP_DIR` with `luarocks config` manually, for example `luarocks config variables.LDAP_DIR /usr/local/opt/openldap/`
|
||||
|
||||
5. If you have no more need for the Apache APISIX runtime, you could uninstall it like this.
|
||||
|
||||
```shell
|
||||
# Uninstall apisix command
|
||||
$ make uninstall
|
||||
```
|
||||
|
||||
Attention please, this operation will totally **remove** the related files.
|
||||
|
||||
## Step 2: Install ETCD
|
||||
|
||||
This step is required if you have installed only Apache APISIX via RPM, Docker or source code but not ETCD.
|
||||
|
@ -117,6 +117,15 @@ $ sudo yum install ./apisix/*.rpm
|
||||
|
||||
解决方案: 通过 `luarocks config` 手动设置 `LDAP_DIR` 变量, 比如 `luarocks config variables.LDAP_DIR /usr/local/opt/openldap/`
|
||||
|
||||
5. 如果您不再需要 Apache APISIX 运行时,您可以执行卸载,如:
|
||||
|
||||
```shell
|
||||
# 卸载 apisix 命令
|
||||
$ make uninstall
|
||||
```
|
||||
|
||||
请注意,该操作将完整**删除**相关文件。
|
||||
|
||||
## 步骤2:安装 ETCD
|
||||
|
||||
如果你只通过 RPM、Docker 或源代码安装了 Apache APISIX,而没有安装 ETCD,则需要这一步。
|
||||
|
Loading…
Reference in New Issue
Block a user