You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/10/17 00:29:56 UTC

[GitHub] [apisix] leslie-tsang commented on a change in pull request #5252: docs: Add RPM repository guide for CentOS 7

leslie-tsang commented on a change in pull request #5252:
URL: https://github.com/apache/apisix/pull/5252#discussion_r729839216



##########
File path: docs/zh/latest/how-to-build.md
##########
@@ -29,7 +29,23 @@ 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
+# Will install apisix-2.10.0, only 2.10.0 is included for now
+sudo yum install apisix

Review comment:
       ```suggestion
   # View apisix package information, only 2.10.0 is included for now
   sudo yum info -y apisix
   # Will install apisix-2.10.0
   sudo yum install apisix
   ```
   Will this be better ?

##########
File path: docs/en/latest/how-to-build.md
##########
@@ -29,7 +29,23 @@ 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
+# Will install apisix-2.10.0, only 2.10.0 is included for now
+sudo yum install apisix

Review comment:
       ```suggestion
   # View apisix package information, only 2.10.0 is included for now
   sudo yum info -y apisix
   # Will install apisix-2.10.0
   sudo yum install apisix
   ```
   Will this be better ?

##########
File path: docs/zh/latest/how-to-build.md
##########
@@ -39,6 +55,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
 ```
 
+> 您也可以通过 `https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.0-0.el7.x86_64.rpm` 安装。
+

Review comment:
       We can add a YUM install cmd like 
   ```bash
   sudo yum install https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.0-0.el7.x86_64.rpm
   ```

##########
File path: docs/zh/latest/how-to-build.md
##########
@@ -29,7 +29,23 @@ 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
+# Will install apisix-2.10.0, only 2.10.0 is included for now
+sudo yum install apisix

Review comment:
       ```suggestion
   # 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
   ```
   Will this be better ?

##########
File path: docs/en/latest/how-to-build.md
##########
@@ -29,7 +29,23 @@ 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
+# Will install apisix-2.10.0, only 2.10.0 is included for now
+sudo yum install apisix

Review comment:
       ```suggestion
   # 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
   ```
   Will this be better ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org