leslie-tsang commented on a change in pull request #5209: URL: https://github.com/apache/apisix/pull/5209#discussion_r727660268
########## File path: docs/zh/latest/install-dependencies.md ########## @@ -44,115 +40,18 @@ title: 安装依赖 - OpenResty 是 APISIX 的一个依赖项,如果是第一次部署 APISIX 并且不需要使用 OpenResty 部署其他服务,可以在 OpenResty 安装完成后停止并禁用 OpenResty,这不会影响 APISIX 的正常工作,请根据自己的业务谨慎操作。例如 Ubuntu:`systemctl stop openresty && systemctl disable openresty`。 -## CentOS 7 +## 安装 -```shell -# 安装 etcd -wget https://github.com/etcd-io/etcd/releases/download/v3.4.13/etcd-v3.4.13-linux-amd64.tar.gz -tar -xvf etcd-v3.4.13-linux-amd64.tar.gz && \ - cd etcd-v3.4.13-linux-amd64 && \ - sudo cp -a etcd etcdctl /usr/bin/ +在支持的操作系统上运行以下指令即可安装 Apache APISIX dependencies. -# 添加 OpenResty 源 -sudo yum install yum-utils -sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo +支持的操作系统版本: CentOS7, Fedora31 & 32, Ubuntu 16.04 & 18.04, Debian 9 & 10, Mac OSX -# 安装 OpenResty 和 编译工具 -sudo yum install -y openresty curl git gcc openresty-openssl111-devel unzip pcre pcre-devel - -# 安装 LuaRocks -curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | bash - - -# 开启 etcd server -nohup etcd & ``` - -## Fedora 31 & 32 - -```shell -# 添加 OpenResty 源 -sudo yum install yum-utils -sudo yum-config-manager --add-repo https://openresty.org/package/fedora/openresty.repo - -# 安装 etcd -wget https://github.com/etcd-io/etcd/releases/download/v3.4.13/etcd-v3.4.13-linux-amd64.tar.gz -tar -xvf etcd-v3.4.13-linux-amd64.tar.gz && \ - cd etcd-v3.4.13-linux-amd64 && \ - sudo cp -a etcd etcdctl /usr/bin/ - -# 安装 OpenResty 和 编译工具 -sudo yum install -y openresty curl git gcc openresty-openssl111-devel pcre pcre-devel - -# 安装 LuaRocks -curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | bash - - -# 开启 etcd server -nohup etcd & +curl https://raw.githubusercontent.com/apache/apisix/master/utils/install-dependencies.sh -sL | bash - ``` -## Ubuntu 16.04 & 18.04 - -```shell -# 添加 OpenResty 源 -wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add - -sudo apt-get update -sudo apt-get -y install software-properties-common -sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" -sudo apt-get update - -# 安装 etcd -wget https://github.com/etcd-io/etcd/releases/download/v3.4.13/etcd-v3.4.13-linux-amd64.tar.gz -tar -xvf etcd-v3.4.13-linux-amd64.tar.gz && \ - cd etcd-v3.4.13-linux-amd64 && \ - sudo cp -a etcd etcdctl /usr/bin/ - -# 安装 OpenResty 和 编译工具 -sudo apt-get install -y git openresty curl openresty-openssl111-dev make gcc libpcre3 libpcre3-dev - -# 安装 LuaRocks -curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | bash - +如果你已经克隆了Apache APISIX仓库,在根目录运行已下指令安装 Apache APISIX dependencies: Review comment: Ref to [chinese-copywriting-guidelines](https://github.com/sparanoid/chinese-copywriting-guidelines#%E4%B8%AD%E8%8B%B1%E6%96%87%E4%B9%8B%E9%96%93%E9%9C%80%E8%A6%81%E5%A2%9E%E5%8A%A0%E7%A9%BA%E6%A0%BC) -- 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]
