kong 安装

1. yum
参考信息

https://bintray.com/kong/kong-community-edition-rpm
$ sudo yum install epel-release
$ sudo yum install kong-community-edition-0.11.1.*.noarch.rpm --nogpgcheck
2. 配置数据库
CREATE USER kong; CREATE DATABASE kong OWNER kong;

// 注意此处可能会有错误,主要是pg 配置问题
错误如下:
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:28: [postgres error] could not retrieve current migrations: [postgres error] FATAL: Ident authentication failed for user "kong"

修改pg 配置

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                    trust
# IPv4 local connections:
host    all             all             127.0.0.1/32           trust
# IPv6 local connections:
host    all             all             ::1/128                 ident
 
3. 管理配置
// 使用可视化界面,docker 安装管理界面
docker run -d -p 8080:8080 pgbi/kong-dashboard:v2
参考界面就可以了,还是比较简单的
 
 
4. 参考文档
https://getkong.org/install/centos/
https://github.com/PGBI/kong-dashboard

posted on 2017-11-17 20:02  荣锋亮  阅读(1829)  评论(0编辑  收藏  举报

导航