Riak 1.1.0安装在 Debian6

本文提供了Riak 1.1.0在Debian 6上的安装步骤,包括从源码安装Erlang、下载及安装Riak,并解决安装过程中遇到的问题如curl缺失、riak命令未加入PATH等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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都能跑了

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值