一、安装依赖
# 安装 epel, `luarocks` 需要它
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm
# 添加 OpenResty 源
sudo yum install yum-utils
sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
# 安装 OpenResty, etcd 和 编译工具
sudo yum install -y etcd openresty curl git gcc luarocks lua-devel
# 开启 etcd server
sudo service etcd start
二、安装Apisix
sudo yum install -y https://github.com/apache/incubator-apisix/releases/download/1.4/apisix-1.4-0.el7.noarch.rpm
三、搭建dashboard控制台
rpm安装的目录在 /usr/local/apisix
进入apisix目录
cd /usr/local/apisix
克隆build好的dashboard
git clone https://github.com/apache/incubator-apisix-dashboard-built.git
修改文件夹名称 文件夹名称需要为dashboard才能进行访问
mv incubator-apisix-dashboard-built/ dashboard/
访问
curl http://127.0.0.1:9080/apisix/dashboard/