Kong Installation

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

阅读更多
个人分类: 其他
上一篇分享SSD使用及优化小技巧
下一篇nagios监控端的安装
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭