关闭

Kong Installation

178人阅读 评论(0) 收藏 举报
分类:

Kong Compile Source

平台Centos6.5 x86_64

Install dependencies:

Lua v5.1.4
Luarocks v2.2.2
Dnsmasq
OpenSSL
PCRE
OpenResty v1.9.3.1

$ yum install -y lua lua-devel openssl openssl-devel pcre pcre-devel dnsmasq readline-devel gcc git
## luarocks,openresty:compile source
$ cd /usr/local/src
$ tar xf luarocks-2.2.2.tar.gz
$ cd luarocks-2.2.2
$ ./configure
$ make build && make install
$ cd .. 
$ tar xf ngx_openresty-1.9.3.1.tar.gz && cd ngx_openresty-1.9.3.1
$ ./configure \
--with-pcre-jit \
--with-ipv6 \
--with-http_realip_module \
--with-http_stub_status_module ##没有启用ssl_certificate_by_lua
$ make && make install

Install Kong

$ luarocks install kong 0.5.2-1
$ ln -s /usr/local/lib/luarocks/rocks/kong/0.5.2-1/conf/kong.yml /etc/kong/kong.yml
$ sed -i 's@ssl_certificate_by_lua@#&@' /etc/kong/kong.yml ## 禁用ssl_certificate_by_lua

Install Oracle JDK

$ rpm -ivh jdk-8u65-linux-x64.rpm
$ java -version ##查看当前JAVA版本
$ alternatives --display java
$ alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_65/bin/java 500000
$ alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_65/bin/javac 500000
$ alternatives --config java ##选择oracle JDK

Install Cassandra

$ tar xzf apache-cassandra-2.1.11-bin.tar.gz
$ apache-cassandra-2.1.11/bin/cassandra -f ##in the foreground run cassandra,listen on localhost:9042
$ netstat -tpln | grep 9042

Start Kong

$ kong start 
$ curl 127.0.0.1:8001

Reference: https://getkong.org

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:497次
    • 积分:42
    • 等级:
    • 排名:千里之外
    • 原创:4篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档