Created
August 1, 2012 19:38
-
-
Save drewkerrigan/3230007 to your computer and use it in GitHub Desktop.
Azure Install Notes
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
############### Testing Node install.sh | |
cd | |
sudo apt-get install git make build-essential libncurses5-dev openssl libssl-dev | |
git clone git://github.com/basho/basho_bench.git | |
cd basho_bench | |
cp examples/riakc_pb.config azure_riakc_pb.config | |
cd | |
############### Node 1-N install.sh | |
cd | |
sudo apt-get install git make build-essential libncurses5-dev openssl libssl-dev | |
wget http://erlang.org/download/otp_src_R14B03.tar.gz | |
tar zxvf otp_src_R14B03.tar.gz | |
cd otp_src_R14B03 | |
./configure && make && sudo make install | |
cd | |
############### Installing Riak | |
curl -O http://downloads.basho.com/riak/CURRENT/riak-1.1.4.tar.gz | |
tar zxvf riak-1.1.4.tar.gz | |
cd riak-1.1.4 | |
make rel | |
cd | |
############### Node 1-N configure.sh | |
cd | |
cp riak-1.1.4/rel/riak/etc/vm.args.bak riak-1.1.4/rel/riak/etc/vm.args | |
cp riak-1.1.4/rel/riak/etc/app.config.bak riak-1.1.4/rel/riak/etc/app.config | |
if [ "$1" == "" ]; then echo "Usage: ./configure.sh one"; exit; fi | |
OS=`uname` | |
IO="" # store IP | |
case $OS in | |
Linux) IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`;; | |
FreeBSD|OpenBSD) IP=`ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}'` ;; | |
SunOS) IP=`ifconfig -a | grep inet | grep -v '127.0.0.1' | awk '{ print $2} '` ;; | |
*) IP="Unknown";; | |
esac | |
echo "riak$1@$IP" | |
cd | |
cd riak-1.1.4/rel/riak | |
cp etc/vm.args etc/vm.args.bak | |
sed -i "s/riak@127\.0\.0\.1/riak$1@$IP/g" etc/vm.args | |
cp etc/app.config etc/app.config.bak | |
sed -i "s/127\.0\.0\.1/$IP/g" etc/app.config | |
cd | |
############### Node 1 start.sh | |
cd | |
cd riak-1.1.4/rel/riak | |
./bin/riak start | |
cd | |
############### Node 2-N start.sh | |
if [ "$1" == "" ]; then echo "Usage: ./start.sh [email protected]"; exit; fi | |
cd | |
cd riak-1.1.4/rel/riak | |
./bin/riak start | |
./bin/riak-admin join $1 | |
cd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment