Created
July 13, 2015 13:36
-
-
Save marktopper/b9c45b1b7c1f7e03030e to your computer and use it in GitHub Desktop.
Install Kong with Java7 + Cassandra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Installing Java7 | |
# Using Oracle Java 7 is not formally supported by Ubuntu. | |
# There's plenty solutions for installing it, listed on https://help.ubuntu.com/community/Java . | |
# | |
# The simplest one listed is this one: | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer | |
# It'll keep your java 7 installation up to date. | |
# | |
# To automatically set up the Java 7 environment variables JAVA_HOME and PATH: | |
sudo apt-get install oracle-java7-set-default | |
### Installing Cassandra 2.0.11 | |
# Add the DataStax Community repository to the /etc/apt/sources.list.d/cassandra.sources.list | |
echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list | |
# Debian systems only: | |
# In /etc/apt/sources.list, find the line that describes your source repository for Debian and add contrib non-free to the end of the line. # For example: | |
# deb http://some.debian.mirror/debian/ $distro main contrib non-free | |
# This allows installation of the Oracle JVM instead of the OpenJDK JVM. | |
# Save and close the file when you are done adding/editing your sources. | |
# Add the DataStax repository key to your aptitude trusted keys. | |
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - | |
# Install the package. For example: | |
sudo apt-get update | |
sudo apt-get install dsc20=2.0.11-1 cassandra=2.0.11 | |
# Check Download DataStax Community Edition on Planet Cassandra for the latest version.¶ | |
# This installs the DataStax Community distribution of Cassandra. . | |
# Because the Debian packages start the Cassandra service automatically, you must stop the server and clear the data: | |
# Doing this removes the default cluster_name (Test Cluster) from the system table. All nodes must use the same cluster name. | |
sudo service cassandra stop | |
sudo rm -rf /var/lib/cassandra/data/system/* | |
### Installing kong (getkong.org) | |
# Downloading file | |
wget "https://github.com/Mashape/kong/releases/download/0.3.2/kong-0.3.2.trusty_all.deb" | |
# Get prepared | |
sudo apt-get update | |
sudo apt-get install netcat lua5.1 openssl libpcre3 dnsmasq | |
# Begin setup | |
sudo dpkg -i kong-0.3.2.*.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is how I managed to install it properly.
https://gist.github.com/marktopper/57af0232db757971e5f7