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