Kong-deploy api gateway
First of all, give the official website link: https://getkong.org/docs/0.10.x/admin-api/
Ubuntu 16.04
Kong 0.9.8 (common to all versions)
# sudo apt-get update
# sudo apt-get install openssl libpcre3 procps perl postgresql
# wget https://bintray.com/mashape/kong-ubuntu-xenial-0.9.x/download_file?file_path=dists%2Fkong-0.9.9.xenial_all.deb
# mv download_file?file_path=dists%2Fkong-0.9.9.xenial_all.debkong-0.9.9.deb
# sudo dpkg-ikong-0.9.9.deb
# su postgres
$psql
Postgres=# CREATE USER kong; CREATE DATABASE kong OWNER kong
Postgres=# alter user kong withpassword 'kong'
Postgres=#\ Q
$exit
# kong start-- vv &
A large errror message appears:
Error:
/ usr/local/share/lua/5.1/kong/cmd/start.lua:34:/usr/local/share/lua/5.1/kong/cmd/start.lua:21: [po
Stgres error] could not get current migrations: [postgres error] FATAL: passwordauthentication failed for user "kong"
It bothered me for three hours at first. Why did I lose my password? Neither the database nor the configuration file has a password set. The official document also makes no mention of the need to set a special password. I think since the password is lost, let's just try to create the password first. Then it succeeds, which actually means that the password is still required in the internal settings.