leslie-tsang commented on a change in pull request #5829: URL: https://github.com/apache/apisix/pull/5829#discussion_r770354967
########## File path: 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 Review comment: Ditto ########## File path: 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 Review comment: Shall we add a `sudo` here ? ########## File path: 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 Review comment: ```suggestion # Create a folder `apisix` to store the RPM packages sudo mkdir -p apisix # Install apisix repo sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm # Rebuild YUM cache sudo yum clean all && yum makecache # Download apisix and its deps package to the `apisx` folder sudo yum install -y --downloadonly --downloaddir=./apisix apisix ``` Shall we remove `$` ? @juzhiyuan IMO, `$` is used to distinguish between `command` and its `output` like ```bash $ uptime 17:24:16 up 3 days, 8:06, 1 user, load average: 0.00, 0.01, 0.05 ``` ########## File path: 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 Review comment: Ditto -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
