Last active
November 5, 2016 11:15
-
-
Save BransonGitomeh/c208c30120c377e5d81c493f29252333 to your computer and use it in GitHub Desktop.
installs latest cassandra , java8 , latest node
This file contains hidden or 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
# run chmod +x ./setup-droplet.sh to make the file executable | |
#install java8 and latest stable cassandra then install latest node | |
#kill the started cassandra process | |
#open the cassandra.yaml file and replace *localhost* with the server's ip address | |
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java8-installer && sudo apt-get install oracle-java8-set-default && echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list && curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - && sudo apt-get update && sudo apt-get install cassandra && curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && sudo apt-get install -y nodejs && ps -ef | grep cassandra | grep -v grep | awk '{print $2}' | xargs kill && ex -s +%s/localhost/192.241.151.182/ge -cwq /etc/cassandra/cassandra.yaml && ex -s +%s/12.0.0.17/192.241.151.182/ge -cwq /etc/cassandra/cassandra.yaml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i use this a lot on Ubuntu 14.04
works like magic