https://docs.konghq.com/install/centos/

wget https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path=centos/6/kong-community-edition-0.12.0.el6.noarch.rpm

[root@test ~]# kong-dashboard start --kong-url http://127.0.0.1:8001
Connecting to Kong on http://127.0.0.1:8001 ...
This version of Kong dashboard doesn't support Kong v0.14 and higher.
[root@test ~]# kong
Usage: kong COMMAND [OPTIONS]

The available commands are:
check
health
migrations
prepare
quit
reload
restart
roar
start
stop
version

Options:
--v verbose
--vv debug

[root@test ~]# kong version
0.14.0
[root@test ~]# history | grep kong
683 2018-08-15 18:47:36 yum install kong-community-edition-0.14.0.*.noarch.rpm --nogpgcheck
684 2018-08-15 18:49:02 yum install kong-community-edition-0.14.0.e16.noarch.rpm --nogpgcheck
690 2018-08-15 18:51:05 wget https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path=centos/6/kong-community-edition-0.14.0.el6.noarch.rpm
693 2018-08-15 19:11:47 mv download_file\?file_path\=centos%2F6%2Fkong-community-edition-0.14.0.el6.noarch.rpm kong-community-edition-0.14.0.el6.noarch.rpm
694 2018-08-15 19:11:58 yum install kong-community-edition-0.14.0.el6.noarch.rpm
790 2018-08-15 22:32:54 npm install -g kong-dashboard
793 2018-08-15 22:33:22 npm install -g kong-dashboard
794 2018-08-15 22:34:44 kong-dashboard start --kong-url http://kong:8001
795 2018-08-15 22:34:56 kong-dashboard start --kong-url http://127.0.0.1:8001
796 2018-08-15 22:36:08 kong
797 2018-08-15 22:36:19 kong version
798 2018-08-15 22:37:25 history | grep kong
[root@test ~]# cd /usr/local/
[root@test local]# ll -as
total 43616
4 drwxr-xr-x. 17 root root 4096 Aug 15 19:49 .
4 drwxr-xr-x. 13 root root 4096 Apr 21 2016 ..
4 drwxr-xr-x. 2 root root 4096 Aug 15 19:12 bin
4 drwxr-xr-x. 3 root root 4096 Aug 15 19:12 etc
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 games
4 drwxr-xr-x. 3 root root 4096 Jul 20 23:53 include
4 drwxr-xr-x 10 root root 4096 Aug 15 22:24 kong
17324 -rw-r--r-- 1 root root 17713781 Jul 6 11:12 kong-community-edition-0.14.0.el6.noarch.rpm
4 drwxr-xr-x. 7 root root 4096 Aug 15 19:12 lib
4 drwxr-xr-x. 3 root root 4096 Jul 21 10:45 lib64
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 libexec
4 drwxr-xr-x 8 root root 4096 Aug 15 19:12 openresty
4 drwxrwxrwx 7 root root 4096 Aug 15 20:24 pgsql
4 drwxrwxrwx 6 1107 1107 4096 Aug 15 19:42 postgresql-10.5
26224 -rw-r--r-- 1 root root 26818092 Aug 7 04:24 postgresql-10.5.tar.gz
4 drwxr-xr-x 7 root root 4096 Mar 30 21:00 qcloud
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 sbin
4 drwxr-xr-x. 6 root root 4096 Aug 15 19:12 share
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 src
0 srwxrwxrwx 1 root root 0 Aug 14 15:49 yd.socket.server
[root@test local]# wget https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path=centos/6/kong-community-edition-0.12.0.el6.noarch.rpm
--2018-08-15 22:38:34-- https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path=centos/6/kong-community-edition-0.12.0.el6.noarch.rpm
Resolving bintray.com (bintray.com)... 119.81.184.206
Connecting to bintray.com (bintray.com)|119.81.184.206|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://dl.bintray.com/kong/kong-community-edition-rpm/centos/6/kong-community-edition-0.12.0.el6.noarch.rpm?expiry=1534343946058&signature=e3qM42J4nGX88UxNEluQPhtaB90md3CBDWPBY8p0wVgK%2FHkpRidf%2FOIU1v3YIHMpWVJE2wUvhryz1dxc6DhV0w%3D%3D [following]
--2018-08-15 22:38:36-- https://dl.bintray.com/kong/kong-community-edition-rpm/centos/6/kong-community-edition-0.12.0.el6.noarch.rpm?expiry=1534343946058&signature=e3qM42J4nGX88UxNEluQPhtaB90md3CBDWPBY8p0wVgK%2FHkpRidf%2FOIU1v3YIHMpWVJE2wUvhryz1dxc6DhV0w%3D%3D
Resolving dl.bintray.com (dl.bintray.com)... 108.168.243.150
Connecting to dl.bintray.com (dl.bintray.com)|108.168.243.150|:443... connected.
HTTP request sent, awaiting response... 302
Location: https://akamai.bintray.com/90/90f98a0ca1088b24da9c2a9318376d826097104e578ef6cd9818d8b7e9a831cd?__gda__=exp=1534344638~hmac=5c0c17d4bf149a545f0c755299709a6fe27c121b905b5bbd8e876fe513f8b657&response-content-disposition=attachment%3Bfilename%3D%22kong-community-edition-0.12.0.el6.noarch.rpm%22&response-content-type=application%2Fx-rpm&requestInfo=U2FsdGVkX1863krJOB2tChMsz5PiqzwFlJqDOeXo1BbDHpN4kw5MKpURmEpbcKMp5BS6hQkAWsIPcUbFIUIz78s0NUgyP6zhYQa334INX7yMETCi3EKLA1qGDZ4_E_dC1eNH6TkHg-ArEjXfCJ9xU81MdwWF3Mth7yo0CN29m8M&response-X-Checksum-Sha1=fd3f942cdec6d12e97d51dd6fd771334ef633f2e&response-X-Checksum-Sha2=90f98a0ca1088b24da9c2a9318376d826097104e578ef6cd9818d8b7e9a831cd [following]
--2018-08-15 22:38:38-- https://akamai.bintray.com/90/90f98a0ca1088b24da9c2a9318376d826097104e578ef6cd9818d8b7e9a831cd?__gda__=exp=1534344638~hmac=5c0c17d4bf149a545f0c755299709a6fe27c121b905b5bbd8e876fe513f8b657&response-content-disposition=attachment%3Bfilename%3D%22kong-community-edition-0.12.0.el6.noarch.rpm%22&response-content-type=application%2Fx-rpm&requestInfo=U2FsdGVkX1863krJOB2tChMsz5PiqzwFlJqDOeXo1BbDHpN4kw5MKpURmEpbcKMp5BS6hQkAWsIPcUbFIUIz78s0NUgyP6zhYQa334INX7yMETCi3EKLA1qGDZ4_E_dC1eNH6TkHg-ArEjXfCJ9xU81MdwWF3Mth7yo0CN29m8M&response-X-Checksum-Sha1=fd3f942cdec6d12e97d51dd6fd771334ef633f2e&response-X-Checksum-Sha2=90f98a0ca1088b24da9c2a9318376d826097104e578ef6cd9818d8b7e9a831cd
Resolving akamai.bintray.com (akamai.bintray.com)... 223.119.205.17
Connecting to akamai.bintray.com (akamai.bintray.com)|223.119.205.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16121037 (15M) [application/x-rpm]
Saving to: ‘download_file?file_path=centos%2F6%2Fkong-community-edition-0.12.0.el6.noarch.rpm’

100%[=========================================================================================================================================>] 16,121,037 291KB/s in 73s

2018-08-15 22:39:54 (215 KB/s) - ‘download_file?file_path=centos%2F6%2Fkong-community-edition-0.12.0.el6.noarch.rpm’ saved [16121037/16121037]

[root@test local]# wget https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path=centos/6/kong-community-edition-0.12.0.el6.noarch.rpm^C
[root@test local]# ^C
[root@test local]# ll -as
total 59380
4 drwxr-xr-x. 17 root root 4096 Aug 15 22:38 .
4 drwxr-xr-x. 13 root root 4096 Apr 21 2016 ..
4 drwxr-xr-x. 2 root root 4096 Aug 15 19:12 bin
15764 -rw-r--r-- 1 root root 16121037 Jan 17 2018 download_file?file_path=centos%2F6%2Fkong-community-edition-0.12.0.el6.noarch.rpm
4 drwxr-xr-x. 3 root root 4096 Aug 15 19:12 etc
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 games
4 drwxr-xr-x. 3 root root 4096 Jul 20 23:53 include
4 drwxr-xr-x 10 root root 4096 Aug 15 22:24 kong
17324 -rw-r--r-- 1 root root 17713781 Jul 6 11:12 kong-community-edition-0.14.0.el6.noarch.rpm
4 drwxr-xr-x. 7 root root 4096 Aug 15 19:12 lib
4 drwxr-xr-x. 3 root root 4096 Jul 21 10:45 lib64
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 libexec
4 drwxr-xr-x 8 root root 4096 Aug 15 19:12 openresty
4 drwxrwxrwx 7 root root 4096 Aug 15 20:24 pgsql
4 drwxrwxrwx 6 1107 1107 4096 Aug 15 19:42 postgresql-10.5
26224 -rw-r--r-- 1 root root 26818092 Aug 7 04:24 postgresql-10.5.tar.gz
4 drwxr-xr-x 7 root root 4096 Mar 30 21:00 qcloud
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 sbin
4 drwxr-xr-x. 6 root root 4096 Aug 15 19:12 share
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 src
0 srwxrwxrwx 1 root root 0 Aug 14 15:49 yd.socket.server
[root@test local]# mv download_file\?file_path\=centos%2F6%2Fkong-community-edition-0.12.0.el6.noarch.rpm kong-community-edition-0.12.0.el6.noarch.rpm
[root@test local]# ll -as
total 59380
4 drwxr-xr-x. 17 root root 4096 Aug 15 22:40 .
4 drwxr-xr-x. 13 root root 4096 Apr 21 2016 ..
4 drwxr-xr-x. 2 root root 4096 Aug 15 19:12 bin
4 drwxr-xr-x. 3 root root 4096 Aug 15 19:12 etc
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 games
4 drwxr-xr-x. 3 root root 4096 Jul 20 23:53 include
4 drwxr-xr-x 10 root root 4096 Aug 15 22:24 kong
15764 -rw-r--r-- 1 root root 16121037 Jan 17 2018 kong-community-edition-0.12.0.el6.noarch.rpm
17324 -rw-r--r-- 1 root root 17713781 Jul 6 11:12 kong-community-edition-0.14.0.el6.noarch.rpm
4 drwxr-xr-x. 7 root root 4096 Aug 15 19:12 lib
4 drwxr-xr-x. 3 root root 4096 Jul 21 10:45 lib64
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 libexec
4 drwxr-xr-x 8 root root 4096 Aug 15 19:12 openresty
4 drwxrwxrwx 7 root root 4096 Aug 15 20:24 pgsql
4 drwxrwxrwx 6 1107 1107 4096 Aug 15 19:42 postgresql-10.5
26224 -rw-r--r-- 1 root root 26818092 Aug 7 04:24 postgresql-10.5.tar.gz
4 drwxr-xr-x 7 root root 4096 Mar 30 21:00 qcloud
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 sbin
4 drwxr-xr-x. 6 root root 4096 Aug 15 19:12 share
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 src
0 srwxrwxrwx 1 root root 0 Aug 14 15:49 yd.socket.server
[root@test local]# cp /etc/kong/kong.conf kong.conf14
[root@test local]# ll -as
total 59412
4 drwxr-xr-x. 17 root root 4096 Aug 15 22:41 .
4 drwxr-xr-x. 13 root root 4096 Apr 21 2016 ..
4 drwxr-xr-x. 2 root root 4096 Aug 15 19:12 bin
4 drwxr-xr-x. 3 root root 4096 Aug 15 19:12 etc
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 games
4 drwxr-xr-x. 3 root root 4096 Jul 20 23:53 include
4 drwxr-xr-x 10 root root 4096 Aug 15 22:24 kong
15764 -rw-r--r-- 1 root root 16121037 Jan 17 2018 kong-community-edition-0.12.0.el6.noarch.rpm
17324 -rw-r--r-- 1 root root 17713781 Jul 6 11:12 kong-community-edition-0.14.0.el6.noarch.rpm
32 -rw-r--r-- 1 root root 30753 Aug 15 22:41 kong.conf14
4 drwxr-xr-x. 7 root root 4096 Aug 15 19:12 lib
4 drwxr-xr-x. 3 root root 4096 Jul 21 10:45 lib64
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 libexec
4 drwxr-xr-x 8 root root 4096 Aug 15 19:12 openresty
4 drwxrwxrwx 7 root root 4096 Aug 15 20:24 pgsql
4 drwxrwxrwx 6 1107 1107 4096 Aug 15 19:42 postgresql-10.5
26224 -rw-r--r-- 1 root root 26818092 Aug 7 04:24 postgresql-10.5.tar.gz
4 drwxr-xr-x 7 root root 4096 Mar 30 21:00 qcloud
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 sbin
4 drwxr-xr-x. 6 root root 4096 Aug 15 19:12 share
4 drwxr-xr-x. 2 root root 4096 Aug 12 2015 src
0 srwxrwxrwx 1 root root 0 Aug 14 15:49 yd.socket.server
[root@test local]# yum remove kong
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
No Match for argument: kong
No Packages marked for removal
[root@test local]# yum remove kong-community-edition-0.14.0
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package kong-community-edition.noarch 0:0.14.0-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Removing:
kong-community-edition noarch 0.14.0-1 @/kong-community-edition-0.14.0.el6.noarch 45 M

Transaction Summary
===================================================================================================================================================================================
Remove 1 Package

Installed size: 45 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : kong-community-edition-0.14.0-1.noarch 1/1
warning: file /usr/local/lib/luarocks/rocks/kong/0.14.0-0/kong.conf.default: remove failed: No such file or directory
Verifying : kong-community-edition-0.14.0-1.noarch 1/1

Removed:
kong-community-edition.noarch 0:0.14.0-1

Complete!
[root@test local]#
[root@test local]#

下载rpm

安装 yum install kong-community-edition-0.12.0.el6.noarch.rpm

卸载

0 srwxrwxrwx 1 root root 0 Aug 14 15:49 yd.socket.server
[root@test local]# yum remove kong-community-edition-0.12.0
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package kong-community-edition.noarch 0:0.12.0-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Removing:
kong-community-edition noarch 0.12.0-1 @/kong-community-edition-0.12.0.el6.noarch 40 M

Transaction Summary
===================================================================================================================================================================================
Remove 1 Package

Installed size: 40 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : kong-community-edition-0.12.0-1.noarch 1/1
warning: file /usr/local/lib/luarocks/rocks/kong/0.12.0-0/kong.conf.default: remove failed: No such file or directory
Verifying : kong-community-edition-0.12.0-1.noarch 1/1

Removed:
kong-community-edition.noarch 0:0.12.0-1

Complete!
[root@test local]#

PGBI/kong-dashboard: Dashboard for managing Kong gateway https://github.com/PGBI/kong-dashboard

Using npm

# Install Kong Dashboard
npm install -g kong-dashboard # Start Kong Dashboard
kong-dashboard start --kong-url http://kong:8001 # Start Kong Dashboard on a custom port
kong-dashboard start \
--kong-url http://kong:8001 \
--port [port] # Start Kong Dashboard with basic auth
kong-dashboard start \
--kong-url http://kong:8001 \
--basic-auth user1=password1 user2=password2 # See full list of start options
kong-dashboard start --help

kong的更多相关文章

  1. Dr.Kong的艺术品

    题目 Dr.Kong设计了一件艺术品,该艺术品由N个构件堆叠而成,N个构件从高到低按层编号依次为1,2,……,N.艺术品展出后,引起了强烈的反映.Dr.Kong观察到,人们尤其对作品的高端部分评价甚多 ...

  2. Kong for Enterprise | Kong - Open-Source API and Microservice Management Layer

    Kong for Enterprise | Kong - Open-Source API and Microservice Management Layer undefined

  3. kong介绍-个人分享

    kong简介 背景 我们在提供api或微服务时,通常借助openresty nginx进行流量转发或者添加一些规则或功能,但是随着服务数量和引用增多,复杂的网络环境, 使维护变得困难,不容易扩展,一些 ...

  4. API Gateway - KONG 安装与配置

    简介 Kong,是由Mashape公司开源的,基于Nginx的API gateway 特点 可扩展,支持分布式 模块化 功能:授权.日志.ip限制.限流.api 统计分析(存在商业插件Galileo等 ...

  5. API网关系列之Kong的介绍以及安装

    一.API网关产生背景 在微服务的架构中,一个大的应用会被拆分成多个小的单一的服务提供出来,这些小的服务有自己的处理,有自己的数据库(也可以共用),也许语言也是不一样的,他们可以部署在一个或多个服务器 ...

  6. k8s实践 - 如何优雅地给kong网关配置证书和插件。

    前言 从去年上半年微服务项目上线以来,一直使用kong作为微服务API网关,整个项目完全部署于k8s,一路走来,对于k8s,对于kong,经历了一个从无到有,从0到1的过程,也遇到过了一些坎坷,今天准 ...

  7. Polaristech 刘洋:基于 OpenResty/Kong 构建边缘计算平台

    2019 年 3 月 23 日,OpenResty 社区联合又拍云,举办 OpenResty × Open Talk 全国巡回沙龙·北京站,Polaristech 技术专家刘洋在活动上做了<基于 ...

  8. kong api可视化管理工具konga安装

    说明:官网推荐: kong-dashboard,但对比界面高端程度和友好度,更推荐konga.[一个坑]kong版本问题:我在安装时目前kong最新版本已经到1.0.0, 对于konga和kong-d ...

  9. kong插件应用

    插件概述 插件之于kong,就像Spring中的aop功能.在请求到达kong之后,转发给后端应用之前,你可以应用kong自带的插件对请求进行处理,合法认证,限流控制,黑白名单校验,日志采集等等.同时 ...

  10. Kong(V1.0.2) Securing the Admin API

    Introduction Kong的Admin API为Services, Routes, Plugins, Consumers, and Credentials的管理和配置提供了一个RESTful接 ...

随机推荐

  1. angular杂谈

    <element ng-include="filename" onload="expression" autoscroll="expressio ...

  2. Java面试进阶部分集合

    框架基础 反射:反射是Java开发的一类动态相关机制.因为本身Java语言并不是一款动态语言,如果我们想要得到程序动态的效果,因此便引入了反射机制这一概念. 怎么表达反射? 能用反射做什么? PS:某 ...

  3. 升级 GCC 支持C++11 或 configure: error: *** A compiler with support for C++11 language features is required.

    configure: error: *** A compiler with support for C++11 language features is required. 参考链接: (1)升级 G ...

  4. centos 7安装postgresql10.3

    最新版本安装请移步:阿里云服务器 centos 7 安装postgresql 11 一.Postgresql简介 官方网站:https://www.postgresql.org/ 简介参考zhihu文 ...

  5. Codeforces Gym101502 J-取数博弈

    还有J题,J题自己并不是,套的板子,大家写的都一样,因为大家都是套板子过的,贴一下代码,等学会了写一篇博客... J.Boxes Game 代码: 1 //J. Boxes Game-取数博弈-不会, ...

  6. linux编译

    文章一 1)用户点击编译程序时,编译程序将C++源代码转换成目标代码,目标代码通常由 机器指令和记录如何将程序加载到内存的信息组成.其后缀通常为.obj或.o: 2)目标文件中存储的只是用户所编写的代 ...

  7. 支持C++11标准

    设置CB下的GCC. Settings->Compiler->Compiler Settings勾选Have g++ follow the C++11 ISO C++ language s ...

  8. 如何轻松的把图片导入execl表格中

    在项目中有时候会遇到往数据库中导数据的时候,往往需要把图片也一起导入execl表格中,那怎么才能把图片一块导入至execl中呢?那么今天我们就来看看怎么实现吧! 如何实现?今天我们就来用jxl和poi ...

  9. 笔记-迎难而上之Java基础进阶4

    内部类创建多线程 //匿名内部类创建多线程 public class InnerClassThread{ public static void main(String[] args){ //回忆一下之 ...

  10. BZOJ1001[BeiJing2006]狼抓兔子最小割網絡流

    Description 现在小朋友们最喜欢的"喜羊羊与灰太狼",话说灰太狼抓羊不到,但抓兔子还是比较在行的, 而且现在的兔子还比较笨,它们只有两个窝,现在你做为狼王,面对下面这样一 ...