有老哥用过 kong 吗,我在安装过程中遇到了点问题,麻烦懂的老哥看下

2018-09-14 14:54:47 +08:00
 dany813

这是官方的教程

Install Kong

Use the Homebrew package manager to add Kong as a tap and install it:

$ brew tap kong/kong
$ brew install kong

Prepare your database

Configure Kong so it can connect to your database. Kong supports both PostgreSQL 9.5+ and Cassandra 3.x.x as its datastore.

If you are using Postgres, please provision a database and a user before starting Kong, ie:

CREATE USER kong; CREATE DATABASE kong OWNER kong;

Now, run the Kong migrations:

$ kong migrations up [-c /path/to/kong.conf]

Note: migrations should never be run concurrently; only one Kong nodes should be performing migrations at a time.

Start Kong

$ kong start [-c /path/to/kong.conf]

我在 kong start 的时候时候报错,

Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:28: nginx configuration is invalid (exit code 1):
nginx: the configuration file /usr/local/opt/kong/nginx.conf syntax is ok
nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong.lua:145: no file at: /usr/local/opt/kong/.kong_env
stack traceback:
	[C]: in function 'assert'
	/usr/local/share/lua/5.1/kong.lua:145: in function 'init'
	init_by_lua:3: in main chunk
nginx: configuration file /usr/local/opt/kong/nginx.conf test failed

一切都是安装教程来了 这是 NGINX 哪里出错了吗,

2951 次点击
所在节点    程序员
2 条回复
neoblackcap
2018-09-14 15:17:10 +08:00
nginx 配置有问题,一般我都是直接 docker 启动
dany813
2018-09-14 15:47:11 +08:00
@neoblackcap 我刚才也是用 docker 才弄好,还是 docker 好用啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/489339

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX