有老哥用过 kong 吗,我在安装过程中遇到了点问题,麻烦懂的老哥看下 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要在回答技术问题时复制粘贴 AI 生成的内容
dany813
V2EX    程序员

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

  •  
  •   dany813 2018-09-14 14:54:47 +08:00 3604 次点击
    这是一个创建于 2654 天前的主题,其中的信息可能已经有所发展或是发生改变。

    这是官方的教程

    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 哪里出错了吗,

    2 条回复    2018-09-14 15:47:11 +08:00
    neoblackcap
        1
    neoblackcap  
       2018-09-14 15:17:10 +08:00
    nginx 配置有问题,一般我都是直接 docker 启动
    dany813
        2
    dany813  
    OP
       2018-09-14 15:47:11 +08:00
    @neoblackcap 我刚才也是用 docker 才弄好,还是 docker 好用啊
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2476 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 11:05 PVG 19:05 LAX 03:05 JFK 06:05
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86