Skip to content

Instantly share code, notes, and snippets.

@therebelrobot
Forked from montanaflynn/install.md
Last active August 29, 2015 14:20
Show Gist options
  • Save therebelrobot/8e348e7d39e18019bf4a to your computer and use it in GitHub Desktop.
Save therebelrobot/8e348e7d39e18019bf4a to your computer and use it in GitHub Desktop.

Install Java, Cassandra & Kong on Ubuntu 14.04

$ sudo su
# curl -L http://git.io/vUvmI | sh
# sudo kong start && exit
wget -O kong.sh http://git.io/vJABW
chmod +x kong.sh
sudo ./kong.sh
sudo kong start
# Install Java
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections &&
add-apt-repository -y ppa:webupd8team/java &&
apt-get update &&
apt-get install -y oracle-java8-installer &&
# Install Cassandra
wget http://apache.mirrors.tds.net/cassandra/2.1.5/apache-cassandra-2.1.5-bin.tar.gz &&
tar xvzf apache-cassandra-2.1.5-bin.tar.gz &&
./apache-cassandra-2.1.5/bin/cassandra &&
# Install Lua5.1
apt-get install lua5.1 &&
# Allow your user mem usage to be a bit higher, avoids warnings
ulimit -n 4096 &&
# Install Kong
wget https://github.com/Mashape/kong/releases/download/0.2.0-2/kong-0.2.0-2.trusty_all.deb &&
apt-get update &&
dpkg -i kong-0.2.0-2.*.deb &&
apt-get install -fy &&
echo 'Successfully Installed Java, Cassandra, Lua, and Kong'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment