This is an automated email from the ASF dual-hosted git repository.
monkeydluffy pushed a commit to branch release/3.2
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/release/3.2 by this push:
new 52627c49e docs: update Debian Installation Guide (#9694)
52627c49e is described below
commit 52627c49e9d36ad2c8b7b0bc1cb0ed0141bc8fb4
Author: Liu Wei <[email protected]>
AuthorDate: Mon Jun 19 15:00:12 2023 +0800
docs: update Debian Installation Guide (#9694)
---
docs/en/latest/installation-guide.md | 73 ++++++++++++++++++++++++------------
docs/zh/latest/installation-guide.md | 73 ++++++++++++++++++++++++------------
2 files changed, 100 insertions(+), 46 deletions(-)
diff --git a/docs/en/latest/installation-guide.md
b/docs/en/latest/installation-guide.md
index ac16e1b94..38e140888 100644
--- a/docs/en/latest/installation-guide.md
+++ b/docs/en/latest/installation-guide.md
@@ -43,6 +43,7 @@ APISIX can be installed by the different methods listed below:
{label: 'Docker', value: 'docker'},
{label: 'Helm', value: 'helm'},
{label: 'RPM', value: 'rpm'},
+ {label: 'DEB', value: 'deb'},
{label: 'Source Code', value: 'source code'},
]}>
<TabItem value="docker">
@@ -130,29 +131,6 @@ sudo yum install apisix-2.13.1
:::
-### Installation via DEB repository
-
-Currently the only DEB repository supported by APISIX is Debian 11 (Bullseye)
and supports both amd64 and arm64 architectures.
-
-```shell
-# amd64
-sudo echo "deb http://openresty.org/package/debian bullseye openresty" | tee
/etc/apt/sources.list.d/openresty.list
-wget -O - http://repos.apiseven.com/pubkey.gpg | apt-key add -
-echo "deb http://repos.apiseven.com/packages/debian bullseye main" | tee
/etc/apt/sources.list.d/apisix.list
-
-# arm64
-sudo echo "deb http://openresty.org/package/debian bullseye openresty" | tee
/etc/apt/sources.list.d/openresty.list
-wget -O - http://repos.apiseven.com/pubkey.gpg | apt-key add -
-echo "deb http://repos.apiseven.com/packages/arm64/debian bullseye main" | tee
/etc/apt/sources.list.d/apisix.list
-```
-
-Then, to install APISIX, run:
-
-```shell
-sudo apt update
-sudo apt install -y apisix=3.0.0-0
-```
-
### Installation via RPM offline package
First, download APISIX RPM offline package to an `apisix` folder:
@@ -192,6 +170,55 @@ Run `apisix help` to get a list of all available
operations.
</TabItem>
+<TabItem value="deb">
+
+### Installation via DEB repository
+
+Currently the only DEB repository supported by APISIX is Debian 11 (Bullseye)
and supports both amd64 and arm64 architectures.
+
+```shell
+# amd64
+echo "deb http://openresty.org/package/debian bullseye openresty" | sudo tee
/etc/apt/sources.list.d/openresty.list
+wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
+wget -O - http://repos.apiseven.com/pubkey.gpg | sudo apt-key add -
+echo "deb http://repos.apiseven.com/packages/debian bullseye main" | sudo tee
/etc/apt/sources.list.d/apisix.list
+
+# arm64
+echo "deb http://openresty.org/package/debian bullseye openresty" | sudo tee
/etc/apt/sources.list.d/openresty.list
+wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
+wget -O - http://repos.apiseven.com/pubkey.gpg | sudo apt-key add -
+echo "deb http://repos.apiseven.com/packages/arm64/debian bullseye main" |
sudo tee /etc/apt/sources.list.d/apisix.list
+```
+
+Then, to install APISIX, run:
+
+```shell
+sudo apt update
+sudo apt install -y apisix=3.0.0-0
+```
+
+### Managing APISIX server
+
+Once APISIX is installed, you can initialize the configuration file and etcd
by running:
+
+```shell
+sudo apisix init
+```
+
+To start APISIX server, run:
+
+```shell
+sudo apisix start
+```
+
+:::tip
+
+Run `apisix help` to get a list of all available operations.
+
+:::
+
+</TabItem>
+
<TabItem value="source code">
If you want to build APISIX from source, please refer to [Building APISIX from
source](./building-apisix.md).
diff --git a/docs/zh/latest/installation-guide.md
b/docs/zh/latest/installation-guide.md
index ede268699..779ff616d 100644
--- a/docs/zh/latest/installation-guide.md
+++ b/docs/zh/latest/installation-guide.md
@@ -44,6 +44,7 @@ import TabItem from '@theme/TabItem';
{label: 'Docker', value: 'docker'},
{label: 'Helm', value: 'helm'},
{label: 'RPM', value: 'rpm'},
+ {label: 'DEB', value: 'deb'},
{label: 'Source Code', value: 'source code'},
]}>
<TabItem value="docker">
@@ -133,29 +134,6 @@ sudo yum install apisix-2.13.1
:::
-### 通过 DEB 仓库安装
-
-目前 APISIX 支持的 DEB 仓库仅支持 Debian 11(Bullseye),并且支持 amd64 和 arm64 架构。
-
-```shell
-# amd64
-sudo echo "deb http://openresty.org/package/debian bullseye openresty" | tee
/etc/apt/sources.list.d/openresty.list
-wget -O - http://repos.apiseven.com/pubkey.gpg | apt-key add -
-echo "deb http://repos.apiseven.com/packages/debian bullseye main" | tee
/etc/apt/sources.list.d/apisix.list
-
-# arm64
-sudo echo "deb http://openresty.org/package/debian bullseye openresty" | tee
/etc/apt/sources.list.d/openresty.list
-wget -O - http://repos.apiseven.com/pubkey.gpg | apt-key add -
-echo "deb http://repos.apiseven.com/packages/arm64/debian bullseye main" | tee
/etc/apt/sources.list.d/apisix.list
-```
-
-完成上述操作后使用以下命令安装 APISIX:
-
-```shell
-sudo apt update
-sudo apt install -y apisix=3.0.0-0
-```
-
### 通过 RPM 包离线安装:
将 APISIX 离线 RPM 包下载到 `apisix` 文件夹:
@@ -195,6 +173,55 @@ apisix start
</TabItem>
+<TabItem value="deb">
+
+### 通过 DEB 仓库安装
+
+目前 APISIX 支持的 DEB 仓库仅支持 Debian 11(Bullseye),并且支持 amd64 和 arm64 架构。
+
+```shell
+# amd64
+echo "deb http://openresty.org/package/debian bullseye openresty" | sudo tee
/etc/apt/sources.list.d/openresty.list
+wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
+wget -O - http://repos.apiseven.com/pubkey.gpg | sudo apt-key add -
+echo "deb http://repos.apiseven.com/packages/debian bullseye main" | sudo tee
/etc/apt/sources.list.d/apisix.list
+
+# arm64
+echo "deb http://openresty.org/package/debian bullseye openresty" | sudo tee
/etc/apt/sources.list.d/openresty.list
+wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
+wget -O - http://repos.apiseven.com/pubkey.gpg | sudo apt-key add -
+echo "deb http://repos.apiseven.com/packages/arm64/debian bullseye main" |
sudo tee /etc/apt/sources.list.d/apisix.list
+```
+
+完成上述操作后使用以下命令安装 APISIX:
+
+```shell
+sudo apt update
+sudo apt install -y apisix=3.0.0-0
+```
+
+### 管理 APISIX 服务
+
+APISIX 安装完成后,你可以运行以下命令初始化 NGINX 配置文件和 etcd:
+
+```shell
+sudo apisix init
+```
+
+使用以下命令启动 APISIX:
+
+```shell
+sudo apisix start
+```
+
+:::tip
+
+你可以运行 `apisix help` 命令,通过查看返回结果,获取其他操作的命令及描述。
+
+:::
+
+</TabItem>
+
<TabItem value="source code">
如果你想要使用源码构建 APISIX,请参考 [源码安装 APISIX](./building-apisix.md)。