Created
May 20, 2011 18:19
-
-
Save lanius/983474 to your computer and use it in GitHub Desktop.
Install riak-0.14.2rc8 to Ubuntu 10.04 LTS on Amazon EC2.
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
# Install riak-0.14.2rc8 to Ubuntu 10.04 LTS on Amazon EC2. | |
# AMI ID: ami-3202f25b on US East | |
# see http://uec-images.ubuntu.com/releases/lucid/release/ | |
ERLANG_PKG=otp_src_R13B04 | |
RIAK_PKG=riak-0.14.2rc8 | |
sudo apt-get update | |
sudo apt-get install build-essential libc6-dev-i386 git-core -y | |
sudo apt-get install libncurses5-dev openssl libssl-dev -y | |
# erlang | |
sudo mkdir /opt/erlang | |
sudo groupadd erlang | |
sudo useradd -g erlang -s /sbin/nologin -d /opt/erlang erlang | |
cd /opt | |
sudo chown erlang erlang | |
sudo chgrp erlang erlang | |
cd /opt/erlang | |
sudo -u erlang wget http://erlang.org/download/${ERLANG_PKG}.tar.gz | |
sudo -u erlang tar zxvf ${ERLANG_PKG}.tar.gz | |
cd ${ERLANG_PKG} | |
sudo -u erlang ./configure | |
sudo -u erlang make | |
sudo make install | |
sudo -u erlang ln -s /opt/erlang/${ERLANG_PKG} /opt/erlang/current | |
# riak | |
sudo mkdir /opt/riak | |
sudo groupadd riak | |
sudo useradd -g riak -s /sbin/nologin -d /opt/riak riak | |
cd /opt | |
sudo chown riak riak | |
sudo chgrp riak riak | |
cd /opt/riak | |
sudo -u riak wget http://github.com/basho/riak/tarball/${RIAK_PKG} --no-check-certificate | |
sudo -u riak mv ${RIAK_PKG} ${RIAK_PKG}.tar.gz | |
sudo -u riak tar zxvf ${RIAK_PKG}.tar.gz | |
sudo -u riak mv basho* ${RIAK_PKG} | |
cd ${RIAK_PKG} | |
sudo -u riak make rel | |
sudo -u riak ln -s /opt/riak/${RIAK_PKG} /opt/riak/current | |
# start riak: | |
# cd /opt/riak/current/rel | |
# sudo riak/bin/riak start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment