Skip to content

Instantly share code, notes, and snippets.

@tkoeppen
Last active December 15, 2015 07:19
Show Gist options
  • Save tkoeppen/5222928 to your computer and use it in GitHub Desktop.
Save tkoeppen/5222928 to your computer and use it in GitHub Desktop.
node, kafka, riak install
# install node
# derived from https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
# TODO: check that you have not installed older version of node in /usr/local/bin and remove them
sudo apt-get install python-software-properties python g++ make
# installing latest nodes (currently 0.10.3), when you want 0.8.x use node.js-legacy ppa
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
# update all node packages
sudo npm update -g
# install forever
npm install -g forever
# install riak
# derived from http://docs.basho.com/riak/1.3.0/tutorials/installation/Installing-on-Debian-and-Ubuntu/
curl http://apt.basho.com/gpg/basho.apt.key | sudo apt-key add -
sudo bash -c "echo deb http://apt.basho.com $(lsb_release -sc) main > /etc/apt/sources.list.d/basho.list"
sudo apt-get update
sudo apt-get install riak
sudo sed -i.bak -e s/riak_kv_bitcask_backend/riak_kv_eleveldb_backend/g /etc/riak/app.config
riak start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment