Kong 是在客户端和(微)服务间转发API通信的API网关,通过插件扩展功能。
官网地址:https://www.postgresql.
2.1 下载RPM安装包
https://bintray.com/kong/kong-community-edition-rpm/centos#files/centos/72.2 安装KONG
rpm -ivh kong-community-edition-1.0.3.el7.noarch.rpm cp /etc/kong/kong.conf.default /etc/kong/kong.conf2.3 安装postgreSQL
安装文档 https://www.cnblogs.com/xiangjun555/articles/10551924.html
创建 kong 数据库
CREATE USER kong; CREATE DATABASE kong OWNER kong;2.4 初始化数据库
kong migrations bootstrap2.5 启动Kong
kong start2.6 检查运行状态
curl -i http://localhost:8001/3.1 安装cnpm,git
yum -y install npm git npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install -g kong-dashboard3.2 git拉取kong-dashboard 源码文件
git clone https://github.com/PGBI/kong-dashboard.git3.3 启动kong-dashboard
cd kong-dashboard#添加登陆认证用户kong-dashboard start \ --kong-url http://127.0.0.1:8001 \ --basic-auth admin=admin访问地址:http://localhost:8080/
转载于:https://www.cnblogs.com/xiangjun555/articles/10552132.html
相关资源:JAVA上百实例源码以及开源项目