一、KONG简介

Kong 是在客户端和(微)服务间转发API通信的API网关,通过插件扩展功能。

官网地址:https://www.postgresql.

Github地址: https://github.com/PGBI/kong-dashboard.git

二、KONG安装和搭建

2.1 下载RPM安装包

2.2 安装KONG

rpm -ivh kong-community-edition-1.0.3.el7.noarch.rpm
cp /etc/kong/kong.conf.default /etc/kong/kong.conf

2.3 安装postgreSQL

安装文档 https://www.cnblogs.com/xiangjun555/articles/10551924.html

创建 kong 数据库

CREATE USER kong; CREATE DATABASE kong OWNER kong;

2.4  初始化数据库

kong migrations bootstrap

2.5 启动Kong

kong start 

2.6 检查运行状态

curl -i http://localhost:8001/

三、安装KONG 的UI管理插件kong-dashboard

3.1 安装cnpm,git

yum -y install epel-release npm git 
npm install
-g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g kong-dashboard

3.2 启动kong-dashboard

cd kong-dashboard
#添加登陆认证用户
kong-dashboard start \
--kong-url http://127.0.0.1:8001 \
  --basic-auth admin=admin

访问地址:http://localhost:8080/

 

 

 

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2021-07-29
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-06-25
猜你喜欢
  • 2021-09-16
  • 2021-09-14
  • 2022-12-23
  • 2022-01-08
  • 2021-08-12
  • 2022-12-23
  • 2022-01-28
相关资源
相似解决方案