按照以下步骤进行顺序执行
①提前解决依赖问题
# 安装epel源, luarocks 需要使用到.
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
# 添加OpenResty 的镜像源
yum install yum-utils
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
# 安装 OpenResty, etcd 和一些依赖工具
yum install -y etcd openresty curl git gcc luarocks lua-devel
# 启动 etcd 服务端
systemctl start etcd
# 防火墙关闭
systemctl stop firewalld.service
systemctl disable firewalld.service
②安装apisix--注意安装1.3版本
yum install -y https://github.com/apache/incubator-apisix/releases/download/1.3/apisix-1.3-0.el7.noarch.rpm
③启动apisix
apisix start
④查看服务是否启动, 查看进程或者监听端口9080
ps aux|grep apisix
netstat -lntp|grep 9080
对/usr/local/apisix/conf/config.yaml 文件进行修改
启动openresty
sudo /sbin/service openresty start
添加- 0.0.0.0/0在前台访问 http://ip:9080/apisix/dashboard/即可成功 注:ip是自己安装apisix的ip