安装Apisix

安装文档:https://apisix.apache.org/zh/docs/apisix/installation-guide/

如果当前系统没有安装 OpenResty,请使用以下命令来安装 OpenResty 和 APISIX 仓库:

sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm

如果已安装 OpenResty 的官方 RPM 仓库,请使用以下命令安装 APISIX 的 RPM 仓库:

sudo yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo

查询可安装的版本

yum search apisix --showduplicates

安装

yum install -y apisix-2.15.3

安装后的目录是/usr/local/apisix和/usr/local/openresty

启动apisix

systemctl daemon-reload
systemctl enable apisix
systemctl start apisix
# apisix网关地址:http://x.x.x.x:9080
# apisix api地址:http://x.x.x.x:9180/apisix/admin

安装Apisix-Dashboard

安装到/usr/local/apisix/dashboard目录
sudo yum install -y https://github.com/apache/apisix-dashboard/releases/download/v3.0.1/apisix-dashboard-3.0.1-0.el7.x86_64.rpm
systemctl enable apisix-dashboard
systemctl start apisix-dashboard

apisix-dashboard地址:http://x.x.x.x:9000
systemctl restart apisix-dashboard

标签: apisix

添加新评论