安装APISIX服务

1、先安装依赖服务

#安装 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 server

systemctl start etcd

如果在访问过程中遇到访问不到的问题可以,可以试着关闭一下防火墙和selinux

#防火墙关闭

systemctl stop firewalld.service
systemctl disable firewalld.service

#关闭selinux

setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

2、安装APISIX

yum install -y https://github.com/apache/incubator-apisix/releases/download/1.3/apisix-1.3-0.el7.noarch.rpm

启动和关闭apisix

apisix start
apisix stop

查看服务是否启动
查看进程或者监听端口9080

#查看进程

ps aux|grep apisix

#查看端口

netstat -lntp|grep 9080

3、测试

http://127.0.0.1:9080/apisix/dashboard/#/login

admin / 123456

附录

高版本已经内置apisix-dashboard控制台,无需额外安装

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

BUG弄潮儿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值