目前apisix官方已经升级到了3.5版本。因为apisix官方升级还是比较频繁的,建议用yum或者rpm安装和升级。这又是一块前无古人的领域,根据本人的多次测试,可靠的方案是
yum remove openresty -y
yum remove apisix -y
yum remove apisix-base -y
yum remove apisix-dashboard-local apisix-dashboard -y #看你安装了哪种
yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
yum info -y apisix #查看可下载的apisix版本
yum install apisix -y
yum install -y https://github.com/apache/apisix-dashboard/releases/download/v2.13/apisix-dashboard-2.13-0.el7.x86_64.rpm
故障排查,如果apisix就是起不来,报错是lua: error loading module ‘ssl.core’ from file,那么
yum remove -y openresty-openssl111 openssl-libs
如果报错是 apinx: [emerg] invalid number of arguments in “lua_shared_dict” directive in
那就是config-default.yaml配置文件老旧了,用yum安装自带的配置文件改改就行了