温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

kong --- deploy api gateway

发布时间:2020-03-25 15:35:56 来源:网络 阅读:634 作者:facinglife 栏目:软件技术

首先给出官网链接:https://getkong.org/docs/0.10.x/admin-api/


Ubuntu 16.04

Kong 0.9.8(各版本通用)

 

 

#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 &

 


出现大的errror信息:

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"

最开始的时候困扰了我三个小时,为什么会丢失密码?本身数据库和配置文件都没有设置密码。官方文档也没有提及需要专门设置密码。我想既然密码丢失,那我们直接先创建密码试试。然后就成功了,实际上就是说密码在内部设置中还是必须的。

 



向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI