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. vue2 父子组件间通信

    父组件往子组件传值 props 传text father.vue <template> <div class="father"> {{'我是父组件'}} & ...

  2. 视音频数据处理入门:RGB、YUV像素数据处理【转】

    转自:http://blog.csdn.net/leixiaohua1020/article/details/50534150 ==================================== ...

  3. LeetCode OJ--Binary Tree Level Order Traversal II

    http://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/ 树的层序遍历,和上一道题相比,对结果做一个顺序调整 reve ...

  4. LeetCode OJ——Pascal's Triangle

    http://oj.leetcode.com/problems/pascals-triangle/ 杨辉三角 先分析数据,找出规律 ans[row][col] = ans[row-1][col-1]+ ...

  5. Java 添加播放MIDI音乐

      Java 在多媒体处理方面的确优势不大,但是我们在程序中有些时候又需要一些音乐. 如果播放的音乐是wav等波形音频文件,又很大的话,所以背景音乐最好就是MIDI了. 网上很多播放MIDI的教程都是 ...

  6. FreeSql 教程引导

    FreeSql是一个功能强大的NETStandard库,用于对象关系映射程序(O/RM),以便于开发人员能够使用 .NETStandard 对象来处理数据库,不必经常编写大部分数据访问代码. 特性 支 ...

  7. Ubuntu 16.04安装MongoDB的GUI工具RoboMongo

    一.下载: https://robomongo.org/download 离线版本:(链接: https://pan.baidu.com/s/1mirFi56 密码: y3t2) 二.安装: -lin ...

  8. BT原理分析(转)

    BT种子文件结构分析,参考:http://www.cnblogs.com/EasonJim/p/6601047.html BT下载,参考:http://baike.baidu.com/item/BT下 ...

  9. OpenLayers3 动画

    参考文章 openlayers3中三种动画实现

  10. UIAlertView弹出视图动画效果

    在App设计中为了加强用户体验,我们会常常加入一些友好的动画效果.比如类似UIAlertView弹出的动画效果,由于系统中并没有直接提供类似的动画API,如果我们想要做出一样的效果,那就得深入的研究一 ...