mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-04 13:07:34 +08:00
doc: added install dependencies. (#139)
This commit is contained in:
parent
1429d6e874
commit
9d1c277d05
@ -66,7 +66,7 @@ You can try APISIX with the [**Quickstart**](#quickstart) now.
|
|||||||
|
|
||||||
APISIX is based on [OpenResty](https://openresty.org/), the configures data storage and distribution via [etcd](https://github.com/etcd-io/etcd).
|
APISIX is based on [OpenResty](https://openresty.org/), the configures data storage and distribution via [etcd](https://github.com/etcd-io/etcd).
|
||||||
|
|
||||||
We recommend that you use [luarocks](https://luarocks.org/) to install APISIX, and for different operating systems have different dependencies, see more: [Install Dependencies](https://github.com/iresty/apisix/wiki/Install-Dependencies)
|
We recommend that you use [luarocks](https://luarocks.org/) to install APISIX, and for different operating systems have different dependencies, see more: [Install Dependencies](doc/install-dependencies.md)
|
||||||
|
|
||||||
#### Install APISIX
|
#### Install APISIX
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ sudo yum install -y https://github.com/iresty/apisix/releases/download/v0.4.1/ap
|
|||||||
|
|
||||||
APISIX 是基于 [openresty](http://openresty.org/) 之上构建的, 配置数据的存储和分发是通过 [etcd](https://github.com/etcd-io/etcd) 来完成。
|
APISIX 是基于 [openresty](http://openresty.org/) 之上构建的, 配置数据的存储和分发是通过 [etcd](https://github.com/etcd-io/etcd) 来完成。
|
||||||
|
|
||||||
我们推荐你使用 [luarocks](https://luarocks.org/) 来安装 APISIX,不同的操作系统发行版本有不同的依赖和安装步骤,具体可以参考: [Install Dependencies](https://github.com/iresty/apisix/wiki/Install-Dependencies)
|
我们推荐你使用 [luarocks](https://luarocks.org/) 来安装 APISIX,不同的操作系统发行版本有不同的依赖和安装步骤,具体可以参考: [安装前的依赖](doc/install-dependencies.md)
|
||||||
|
|
||||||
#### 安装 APISIX
|
#### 安装 APISIX
|
||||||
|
|
||||||
|
77
doc/install-dependencies.md
Normal file
77
doc/install-dependencies.md
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# Install Dependencies
|
||||||
|
|
||||||
|
* [CentOS 7](#centos-7)
|
||||||
|
* [Ubuntu 18.04](#ubuntu-1804)
|
||||||
|
* [Debian 9](#debian-9)
|
||||||
|
* [CentOS 6](#centos-6)
|
||||||
|
|
||||||
|
CentOS 7
|
||||||
|
========
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# install epel, `luarocks` need it.
|
||||||
|
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||||
|
sudo rpm -ivh epel-release-latest-7.noarch.rpm
|
||||||
|
|
||||||
|
# add openresty source
|
||||||
|
sudo yum install yum-utils
|
||||||
|
sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
|
||||||
|
|
||||||
|
# install openresty, etcd and some compilation tools
|
||||||
|
sudo yum install -y etcd openresty curl git automake autoconf \
|
||||||
|
gcc pcre-devel libtool gcc-c++ luarocks
|
||||||
|
|
||||||
|
# start etcd server
|
||||||
|
sudo service etcd start
|
||||||
|
```
|
||||||
|
|
||||||
|
Ubuntu 18.04
|
||||||
|
============
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# add openresty source
|
||||||
|
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
|
||||||
|
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
|
||||||
|
|
||||||
|
# install openresty, etcd and some compilation tools
|
||||||
|
sudo apt-get install -y git etcd openresty curl luarocks\
|
||||||
|
check libpcre3 libpcre3-dev libjemalloc-dev \
|
||||||
|
libjemalloc1 build-essential libtool automake autoconf pkg-config cmake
|
||||||
|
|
||||||
|
# start etcd server
|
||||||
|
sudo service etcd start
|
||||||
|
```
|
||||||
|
|
||||||
|
Debian 9
|
||||||
|
========
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# add openresty source
|
||||||
|
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
|
||||||
|
sudo apt-get -y install software-properties-common
|
||||||
|
sudo add-apt-repository -y "deb http://openresty.org/package/debian $(lsb_release -sc) openresty"
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
# install etcd
|
||||||
|
wget https://github.com/etcd-io/etcd/releases/download/v3.3.13/etcd-v3.3.13-linux-amd64.tar.gz
|
||||||
|
tar -xvf etcd-v3.3.13-linux-amd64.tar.gz && \
|
||||||
|
cd etcd-v3.3.13-linux-amd64 && \
|
||||||
|
cp -a etcd etcdctl /usr/bin/
|
||||||
|
|
||||||
|
# install openresty, etcd and some compilation tools
|
||||||
|
sudo apt-get install -y git etcd openresty curl luarocks\
|
||||||
|
check libpcre3 libpcre3-dev libjemalloc-dev \
|
||||||
|
libjemalloc1 build-essential libtool automake autoconf pkg-config
|
||||||
|
|
||||||
|
# start etcd server
|
||||||
|
nohup etcd &
|
||||||
|
```
|
||||||
|
|
||||||
|
CentOS 6
|
||||||
|
========
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
The compilation of `libr3` relies on later versions of `autoconf` and `pcre`, but the CentOS 6 comes with a lower version, will support CentOS 6 later.
|
Loading…
Reference in New Issue
Block a user