Thursday, August 30, 2012

Installing RIAK on RedHat Linux CentOS 6


# The official guide is here: http://wiki.basho.com/Installing-on-RHEL-and-CentOS.html#From-source

# get superuser permissions: login as root

 # for CentOS 6 (64-bit) and RIAK 1.2.0.1 -
wget http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/CURRENT/rhel/6/riak-1.2.0-1.el6.x86_64.rpm
sudo rpm -Uvh riak-1.2.0-1.el6.x86_64.rpm 

# next, edit config file adding external server' IP next to internal 127.0.0.1 wherever appropriate
# For HTTP / HTTPS the lines should look like
#
#  {http, [ {"127.0.0.1", 8098 }, {"222.222.8.155", 8098} ]},
# and
# {https, [{ "127.0.0.1", 8098 }, {"222.222.8.155", 8098}]},

vi /etc/riak/app.config

#next, start RIAK instance

riak start


# to test your install put some JPEG file into RIAK

curl -X PUT HTTP://127.0.0.1:8098/riak/images/1.jpg   -H "Content-type: image/jpeg" --data-binary @./u.jpg

# check you can see from outside of RIAK machine by using a browser with link to
http://[external-IP-or-domain-for-RIAK-machine]:8098/riak/images.1.jpg


1 comment:

Unknown said...

Thank you for sharing. This was helpful!