ubuntu上安装cassandra分布式数据库

因为ubuntu 10.04默认源里是没有cassandra的
所以第一步要设置源:

root@shutiao:~$sudo vi /etc/apt/sources.list

添加apache官方deb源:

[quote]deb http://www.apache.org/dist/cassandra/debian unstable main
deb-src http://www.apache.org/dist/cassandra/debian unstable main[/quote]

保存完sources.list后,我们还要设置public keyserver,增加PUBLIC_KEY,不然会报如下错误
[quote]GPG签名验证错误: http://www.apache.org unstable Release: 由于没有公钥,下列签名无法进行验证[/quote]
设置并添加public keyserver
root@shutiao:~$sudo gpg --keyserver wwwkeys.eu.pgp.net --recv-keys F758CE318D77295D
root@shutiao:~$ gpg --export --armor F758CE318D77295D | sudo apt-key add -
root@shutiao:~$ sudo apt-get update
完成源设置后,我们可以查看下是否有cassandra
root@shutiao:~$ sudo apt-cache search cassandra
[quote]cassandra - distributed storage system for structured data[/quote]
现在我们可以利用强大的apt-get来安装cassandra
root@shutiao:~$ sudo apt-get install cassandra
完成安装后,我们可以执行
root@shutiao:~$ ps -ef | grep cassandra
查看cassandra进程信息
到这里我们就完成了cassandra的安装
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值