kong
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的更多相关文章
- Dr.Kong的艺术品
题目 Dr.Kong设计了一件艺术品,该艺术品由N个构件堆叠而成,N个构件从高到低按层编号依次为1,2,……,N.艺术品展出后,引起了强烈的反映.Dr.Kong观察到,人们尤其对作品的高端部分评价甚多 ...
- Kong for Enterprise | Kong - Open-Source API and Microservice Management Layer
Kong for Enterprise | Kong - Open-Source API and Microservice Management Layer undefined
- kong介绍-个人分享
kong简介 背景 我们在提供api或微服务时,通常借助openresty nginx进行流量转发或者添加一些规则或功能,但是随着服务数量和引用增多,复杂的网络环境, 使维护变得困难,不容易扩展,一些 ...
- API Gateway - KONG 安装与配置
简介 Kong,是由Mashape公司开源的,基于Nginx的API gateway 特点 可扩展,支持分布式 模块化 功能:授权.日志.ip限制.限流.api 统计分析(存在商业插件Galileo等 ...
- API网关系列之Kong的介绍以及安装
一.API网关产生背景 在微服务的架构中,一个大的应用会被拆分成多个小的单一的服务提供出来,这些小的服务有自己的处理,有自己的数据库(也可以共用),也许语言也是不一样的,他们可以部署在一个或多个服务器 ...
- k8s实践 - 如何优雅地给kong网关配置证书和插件。
前言 从去年上半年微服务项目上线以来,一直使用kong作为微服务API网关,整个项目完全部署于k8s,一路走来,对于k8s,对于kong,经历了一个从无到有,从0到1的过程,也遇到过了一些坎坷,今天准 ...
- Polaristech 刘洋:基于 OpenResty/Kong 构建边缘计算平台
2019 年 3 月 23 日,OpenResty 社区联合又拍云,举办 OpenResty × Open Talk 全国巡回沙龙·北京站,Polaristech 技术专家刘洋在活动上做了<基于 ...
- kong api可视化管理工具konga安装
说明:官网推荐: kong-dashboard,但对比界面高端程度和友好度,更推荐konga.[一个坑]kong版本问题:我在安装时目前kong最新版本已经到1.0.0, 对于konga和kong-d ...
- kong插件应用
插件概述 插件之于kong,就像Spring中的aop功能.在请求到达kong之后,转发给后端应用之前,你可以应用kong自带的插件对请求进行处理,合法认证,限流控制,黑白名单校验,日志采集等等.同时 ...
- Kong(V1.0.2) Securing the Admin API
Introduction Kong的Admin API为Services, Routes, Plugins, Consumers, and Credentials的管理和配置提供了一个RESTful接 ...
随机推荐
- fork()函数的执行过程、孤儿进程和僵尸进程
说起fork就不得不提COW(Copy On Write),就是“写时拷贝”.也就是当fork发生时,子进程根本不会去拷贝父进程的内存页面,而是与父进程共享.当子进程或父进程需要修改一个内存页面时,L ...
- centos 7安装golang1.10
一.安装&配置 官方下载包(一般需要梯子) https://golang.org/dl/ wget https://dl.google.com/go/go1.10.linux-amd64.ta ...
- [Bzoj4943][Noi2017]蚯蚓(hash)
4943: [Noi2017]蚯蚓 Time Limit: 50 Sec Memory Limit: 512 MBSubmit: 237 Solved: 110[Submit][Status][D ...
- cf744
Codeforces Round #385 (Div. 1) <br > A.Hongcow Builds A Nation 贪心. 显然就是凑成一个最大的块即可 那么首先并查集处理已经确 ...
- GeoServer自动发布地图服务
1 NetCDF气象文件自动发布案例 GeoServer是一个地理服务器,提供了管理页面进行服务发布,样式,切片,图层预览等一系列操作,但是手动进行页面配置有时并不满足业务需求,所以GeoServer ...
- [NSThread sleepForTimeInterval:3.0];
在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)laun ...
- 【swagger】2.swagger提供开发者文档--返回统一格式篇【spring mvc】【spring boot】
接着上一篇来说, 不管正常返回结果还是后台出现异常,应该返回给前台统一的响应格式. 所以这一篇就为了应对解决这个问题. ======================================== ...
- weblogic日志管理
服务器日志 每个 WebLogic Server 实例将来自子系统和应用程序的所有消息写入位于本地主机上的服务器日志文件.默认情况下,服务器日志文件位于服务器实例根目录下的 logs 目录中: 例如 ...
- dubbo常见问题解答FAQ
常见问题解答 1. 如果服务注册不上怎么办? 2. 出现RpcException: No provider available for remote service异常怎么办? 3. 出现调用超时co ...
- 解决chrome浏览器us-yahoo.com搜索劫持
一直用着greenchrome浏览器,结果有次之后,地址栏的默认搜索引擎用的bing,但是仍然会重定向到us-yahoo.com进行搜索,初起时以为是greenchrome插件作者的返利,类似2345 ...