Riak 1.1.0 Debian6 安装:Installing on GNU/Linux #
Most distributions do not have the most recent Erlang release available, so you will need to install from source.
First, make sure you have a compatible build system and the ncurses and openssl development libraries installed. On Debian/Ubuntu use this command:
$ sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
On RHEL/CentOS use this command:
$ sudo yum install gcc glibc-devel make ncurses-devel openssl-devel
Next, download, build and install Erlang:
$ 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
Now we can download and install Riak:
$ wget http://downloads.basho.com/riak/riak-1.1.0/riak-1.1.0.tar.gz
$ tar zxvf riak-1.1.0.tar.gz
$ cd riak-1.1.0
$ make rel
发现curl没有安装,sudo apt-get install curl
然后跑$ curl -v http://127.0.0.1:8098/riak/test就没问题了
还发现解压后的目录中的riak命令没有加入PATH
手动加入.bashrc, path/home/leon/Downloads/otp_src_R14B03/riak-1.1.0/rel/riak/bin
$riak start
$riak console
$riak stop都能跑了