This is an automated email from the ASF dual-hosted git repository. majunjie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push: new 153e643 docs: Add RPM repository guide for CentOS 7 (#5252) 153e643 is described below commit 153e643674f13df98fb0929085ff61240aa73c66 Author: Joey <majun...@apache.org> AuthorDate: Fri Oct 15 23:12:41 2021 +0800 docs: Add RPM repository guide for CentOS 7 (#5252) --- docs/en/latest/how-to-build.md | 24 +++++++++++++++++++++++- docs/zh/latest/how-to-build.md | 24 +++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/docs/en/latest/how-to-build.md b/docs/en/latest/how-to-build.md index 22b3ba9..6fe600b 100644 --- a/docs/en/latest/how-to-build.md +++ b/docs/en/latest/how-to-build.md @@ -29,7 +29,27 @@ Before installing Apache APISIX, please install dependencies according to the op ## Step 2: Install Apache APISIX -You can install Apache APISIX via RPM package, Docker, Helm Chart, and source release package. Please choose one from the following options. +You can install Apache APISIX via RPM Repository, RPM package, Docker, Helm Chart, and source release package. Please choose one from the following options. + +### Installation via RPM Repository(CentOS 7) + +This installation method is suitable for CentOS 7. For now, the Apache APISIX RPM repository for CentOS 7 is already supported. Please run the following commands to install the repository and Apache APISIX. + +```shell +sudo yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo +# View apisix package information, only 2.10.0 is included for now +sudo yum info -y apisix +sudo yum --showduplicates list apisix + +# Will install apisix-2.10.0 +sudo yum install apisix +``` + +If the official OpenResty repository is not installed yet, the following command will help you automatically install both the repositories of OpenResty and Apache APISIX. + +```shell +sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm +``` ### Installation via RPM Package(CentOS 7) @@ -39,6 +59,8 @@ This installation method is suitable for CentOS 7, please run the following comm sudo yum install -y https://github.com/apache/apisix/releases/download/2.10.0/apisix-2.10.0-0.el7.x86_64.rpm ``` +> You can also install the RPM package via running `sudo yum install -y https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.0-0.el7.x86_64.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 c419591..e4bdbe1 100644 --- a/docs/zh/latest/how-to-build.md +++ b/docs/zh/latest/how-to-build.md @@ -29,7 +29,27 @@ Apache APISIX 的运行环境需要依赖 NGINX 和 etcd,所以在安装 Apach ## 步骤2:安装 Apache APISIX -你可以通过 RPM 包、Docker、Helm Chart、源码包等多种方式来安装 Apache APISIX。请在以下选项中选择其中一种执行。 +你可以通过 RPM 仓库、RPM 包、Docker、Helm Chart、源码包等多种方式来安装 Apache APISIX。请在以下选项中选择其中一种执行。 + +### 通过 RPM 仓库安装(CentOS 7) + +这种安装方式适用于 CentOS 7 操作系统。Apache APISIX 已经支持适用于 CentOS 7 的 RPM 仓库。请运行以下命令安装 RPM 仓库和 Apache APISIX。 + +```shell +sudo yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo +# View apisix package information, only 2.10.0 is included for now +sudo yum info -y apisix +sudo yum --showduplicates list apisix + +# Will install apisix-2.10.0 +sudo yum install apisix +``` + +如果尚未安装 OpenResty 的官方 RPM 仓库,以下命令可以帮助您自动安装 OpenResty 和 Apache APISIX 的 RPM 仓库。 + +```shell +sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm +``` ### 通过 RPM 包安装(CentOS 7) @@ -39,6 +59,8 @@ Apache APISIX 的运行环境需要依赖 NGINX 和 etcd,所以在安装 Apach sudo yum install -y https://github.com/apache/apisix/releases/download/2.10.0/apisix-2.10.0-0.el7.x86_64.rpm ``` +> 您也可以运行 `sudo yum install -y https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.0-0.el7.x86_64.rpm` 命令安装。 + ### 通过 Docker 安装 详情请参考:[使用 Docker 安装 Apache APISIX](https://hub.docker.com/r/apache/apisix)。