安装kong
sudo yum install kong-1.3.0.el7.amd64.rpm --nogpgcheck
cd /etc/kong/
cp kong.conf.default kong.conf
kong migrations bootstrap [-c /etc/kong/kong.conf]
migrating session on database 'kong'...
session migrated up to: 000_base_session (executed)
27 migrations processed
27 executed
Database is up-to-date
vim /etc/kong/kong.conf
admin_listen = 0.0.0.0:8001, 127.0.0.1:8444 ssl
kong start
konga安装
- nodejs
# 将安装包上传服务器解压,重命名为nodejs,创建软连接
ln -s /opt/nodejs/bin/npm /usr/local/bin/
ln -s /opt/nodejs/bin/node /usr/local/bin/
# 查看是否安装成功
[root@localhost bin]# node -v
v10.16.3
- konga 的安装
# 拷贝konga文件到服务器,解压启动
npm run start
成功之后浏览
http://192.168.43.145:1337