sh OSX:Kong安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh OSX:Kong安装相关的知识,希望对你有一定的参考价值。

#!/bin/bash

#
# The homebrew formula of kong has a lot of version incompatibilities. So
# we install kong directly from Luarocks. 
#
# Kong only works with Cassandra 2.1.x/2.2.x, the latest brew formula for 
# cassandra is 3.x. We need to tap homebrew/versions and install cassandra22
# instead.
#

# 1. Uninstall old cassandras, if any
# Skip to #2 if no cassandra is installed
brew tap homebrew/versions
brew uninstall cassandra cassandra20
brew cleanup 

# Delete leftovers as well
rm -rf /usr/local/etc/cassandra

# 2. Install/Start cassandra 2.2.x
brew install cassandra22
brew services start cassandra22

# 3. Install luarocks
brew install luajit luarocks

# 4. Install kong and its deps
luarocks install multipart lua-resty-iputils lapis kong

kong start

# Test 
http get 127.0.0.1:8001

以上是关于sh OSX:Kong安装的主要内容,如果未能解决你的问题,请参考以下文章

sh OSX安装脚本

sh 重新安装OSX后执行某些操作

sh 在OSX上从dmg文件安装包

sh 在OSX 10.11上安装vis

sh 如何在Mac OSX上安装和编译rsync

sh 在新的OSX机器上安装我想要的东西的脚本