Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/en/latest/how-to-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +62 to +65
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ 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
# 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

$ uptime 
17:24:16 up 3 days,  8:06,  1 user,  load average: 0.00, 0.01, 0.05

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uptime is a command, right? 😄

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

```

Copy `./apisix` folder to the target host, run the following command to install Apache APISIX.

```shell
$ sudo yum install ./apisix/*.rpm
```

### Installation via Docker

Please refer to: [Installing Apache APISIX with Docker](https://hub.docker.com/r/apache/apisix).
Expand Down
17 changes: 17 additions & 0 deletions docs/zh/latest/how-to-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +62 to +65
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

```

拷贝 `./apisix` 文件夹到目标主机,使用以下命令安装 Apache APISIX。

```shell
$ sudo yum install ./apisix/*.rpm
```

### 通过 Docker 安装

详情请参考:[使用 Docker 安装 Apache APISIX](https://hub.docker.com/r/apache/apisix)。
Expand Down