目录
Error: module 'resty.kong.tls' not found:
Database needs bootstrapping or is older than Kong 1.0
Error: nginx configuration is invalid (exit code 1):
Kong网关介绍
官网地址:API Gateway and Service Connectivity Platform | Kong Inc.
官网:https://konghq.com/
github: https://github.com/Kong
可以在空的官方文档中,选择mac 环境安装,当然也可以选择其他模式的安装
https://konghq.com/install/?itm_source=website&itm_medium=nav
开源的kong 管理页面,非官方(两个都可以)
kong admin: pocketdigi · GitHub kong-admin-ui
kongga: GitHub - pantsel/konga: More than just another GUI to Kong Admin API
官方安装教程:Install Kong Gateway on macOS - v2.8.x | Kong Docs
准备brew 安装
mac 下安装,基本可以使用 brew, 但是之前下载的homebrew 源,是国外的,下载和更新很慢,建议使用如下命令,直接切换源(可选 中科大 或 清华源)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
选中科大镜像源
安装基本依赖
Mac OS X (macOS) 用户安装过程中由于pcre和openssl可能出错,直接使用brew单独安装 OpenResty - 安装
安装 pcre opensslOpenResty - 安装
# 安装
brew install pcre openssl
#查看安装路径
brew list pcre openssl
#我个人安装路径不是这里,是/opt/homebrew/路径下
/usr/local/Cellar/pcre/8.44/bin/pcre-config
/usr/local/Cellar/pcre/8.44/bin/pcregrep
/usr/local/Cellar/pcre/8.44/bin/pcretest
/usr/local/Cellar/pcre/8.44/include/ (6 files)
/usr/local/Cellar/pcre/8.44/lib/libpcre.1.dylib
/usr/local/Cellar/pcre/8.44/lib/libpcre16.0.dylib
/usr/local/Cellar/pcre/8.44/lib/libpcre32.0.dylib
/usr/local/Cellar/pcre/8.44/lib/l