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接 ...
随机推荐
- 获取cookie中的某个参数值
因为cookie的值是很多key=value连接起来的字符串,所以如果要取cookie中某个key的值: function getCookie(name) { let cookieValue = nu ...
- 关于vsftp所遇问题
问题:使用ftp工具上传文件时提示 553 Could not create file.错误: 严重文件传输错误解决方法:除了检查ftp服务外,需要使用 getsebool -a|grep ftp, ...
- AC日记——最短路 洛谷 P2384
题目背景 狗哥做烂了最短路,突然机智的考了Bosh一道,没想到把Bosh考住了...你能帮Bosh解决吗? 他会给你100000000000000000000000000000000000%10金币w ...
- React-Native Navigator 过渡动画卡顿的解决方案
在RN0.44版本之前,路由导航跳转几乎是使用的是Navigator组件,在0.44版本以后就不推荐使用了,官方推荐的是react-navigation,当然还是可以在废弃的库中找到: import ...
- Java集合——Collections工具类
Java集合——Collections工具类 摘要:本文主要学习了Collections工具类的常用方法. 概述 Collections工具类主要用来操作集合类,比如List和Set. 常用操作 排序 ...
- Spring实战Day3
通过XML创建装配bean 1.装配不存在成员变量的bean <bean id="talent" class="cn.jqzhong.Spring.study.da ...
- mybatis ----SqlSessionManager
今天我们来看看这个类 有些写法还是很经典的 public class SqlSessionManager implements SqlSessionFactory, SqlSession { priv ...
- mac安装.net core
https://www.microsoft.com/net/core#macos Install for macOS 10.11 or higher (64 bit) 1 Install pre-re ...
- golang map to struct
http://stackoverflow.com/questions/26744873/converting-map-to-struct func SetField(obj interface{}, ...
- jquery中text(),html(),val()在取值上的区别
1.html():读取和修改一个元素的HTML内容: 2.text():读取和修改一个元素的文本内容: 3.val():读取和修改一个表单元素的value字段值.