From 519cd6ec8f6990fa42d7b93d540db9b0296c239c Mon Sep 17 00:00:00 2001 From: 123liubao Date: Thu, 16 Dec 2021 14:53:18 +0800 Subject: [PATCH 1/2] docs: add offline install to 'how-to-build.md' --- docs/en/latest/how-to-build.md | 17 +++++++++++++++++ docs/zh/latest/how-to-build.md | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/docs/en/latest/how-to-build.md b/docs/en/latest/how-to-build.md index 0991805c5ca9..5789c16ed26d 100644 --- a/docs/en/latest/how-to-build.md +++ b/docs/en/latest/how-to-build.md @@ -54,6 +54,23 @@ $ sudo yum --showduplicates list apisix $ sudo yum install apisix ``` +### Installation via RPM Offline Package(CentOS 7) + +Download APISIX offline RPM package to `./apisix` folder + +```shell +$ sudo mkdir -p apisix +$ sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm +$ sudo yum clean all && yum makecache +$ sudo yum install -y --downloadonly --downloaddir=./apisix apisix +``` + +Copy `./apisix` folder to the target host, run the following command to install Apache APISIX. + +```shell +$ yum install ./apisix/*.rpm +``` + ### Installation via Docker Please refer to: [Installing Apache APISIX with Docker](https://hub.docker.com/r/apache/apisix). diff --git a/docs/zh/latest/how-to-build.md b/docs/zh/latest/how-to-build.md index 6775c89d41aa..1da1a1cacbc0 100644 --- a/docs/zh/latest/how-to-build.md +++ b/docs/zh/latest/how-to-build.md @@ -54,6 +54,23 @@ $ sudo yum --showduplicates list apisix $ sudo yum install apisix ``` +### 通过 RPM 包离线安装(CentOS 7) + +下载 APISIX 离线 RPM 包到 `./apisix` 文件夹 + +```shell +$ sudo mkdir -p apisix +$ sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm +$ sudo yum clean all && yum makecache +$ sudo yum install -y --downloadonly --downloaddir=./apisix apisix +``` + +拷贝 `./apisix` 文件夹到目标主机,使用以下命令安装 Apache APISIX。 + +```shell +$ yum install ./apisix/*.rpm +``` + ### 通过 Docker 安装 详情请参考:[使用 Docker 安装 Apache APISIX](https://hub.docker.com/r/apache/apisix)。 From b407ad2f92ec247f1f6e23b29aac3f4b781374f8 Mon Sep 17 00:00:00 2001 From: 123liubao Date: Thu, 16 Dec 2021 17:38:38 +0800 Subject: [PATCH 2/2] fix: add 'sudo' . Signed-off-by: 123liubao --- docs/en/latest/how-to-build.md | 2 +- docs/zh/latest/how-to-build.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/latest/how-to-build.md b/docs/en/latest/how-to-build.md index 5789c16ed26d..f2939369da98 100644 --- a/docs/en/latest/how-to-build.md +++ b/docs/en/latest/how-to-build.md @@ -68,7 +68,7 @@ $ sudo yum install -y --downloadonly --downloaddir=./apisix apisix Copy `./apisix` folder to the target host, run the following command to install Apache APISIX. ```shell -$ yum install ./apisix/*.rpm +$ sudo yum install ./apisix/*.rpm ``` ### Installation via Docker diff --git a/docs/zh/latest/how-to-build.md b/docs/zh/latest/how-to-build.md index 1da1a1cacbc0..59c211051dcd 100644 --- a/docs/zh/latest/how-to-build.md +++ b/docs/zh/latest/how-to-build.md @@ -68,7 +68,7 @@ $ sudo yum install -y --downloadonly --downloaddir=./apisix apisix 拷贝 `./apisix` 文件夹到目标主机,使用以下命令安装 Apache APISIX。 ```shell -$ yum install ./apisix/*.rpm +$ sudo yum install ./apisix/*.rpm ``` ### 通过 Docker 安装