kong 安装过程

Kong 安装过程

  1. Centos 6.5   参数https://getkong.org/install/source 英文]实施过程:
  2. 1.下载对应的openresty 版本
    2.copy到你workspace下,tar -zxvf openresty-<VERSION>.tar.gz
    3.cd openresty-<VERSION>
    4. ./configure \ --with-pcre-jit \ --with-ipv6 \ --with-http_realip_module \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_v2_module
       
    过程种会中会出现,系统中pcre Lib,
        执行  yum install -y zlib zlib-devel openssl openssl-devel pcre pcre-devel  ,  yum install -y gcc gcc-c++ 
    5. 重复 4 的操作。sudo gmake && sudo gmake install  
    6. echo 'export PATH="$PATH:/usr/local/openresty/bin"' >> ~/.bashrc
  3. 1.下载对应的luarocks-<VERSION> 地址:http://luarocks.github.io/luarocks/releases/
    2. copy到你workspace下,tar -zxvf luarocks-<VERSION>
    3. cd luarocks-<VERSION> 
    4. ./configure \ --lua-suffix=jit \ --with-lua=/usr/local/openresty/luajit \ --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1
    make build && sudo make install 
  4.  install kong 
    luarocks install kong 0.11.1-0 --local  

    重新运行一下命令,有可能是你的网络不稳定导致,我这里就是这样。
      
  5. 安装  PostgreSQL 9.4+  地址:https://www.postgresql.org/ftp/source/   Cassandra 3.x.x    http://cassandra.apache.org/download/
posted @ 2017-11-02 18:50  RockyLee  阅读(222)  评论(0编辑  收藏  举报