debian tesing安装cassandra

添加cassandra源

新建source list文件/etc/apt/source.list.d/cassandra.list,在其中添加cassandra源

deb http://www.apache.org/dist/cassandra/debian 20x main
deb-src http://www.apache.org/dist/cassandra/debian 20x main

20x表示使用2.0.x系列版本,20x目前是最新的,可选12x,11x等。

添加源的public key

$ gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D
$ gpg --export --armor F758CE318D77295D | sudo apt-key add -
$ gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
$ gpg --export --armor 2B5C1B00 | sudo apt-key add -

输出:
gpg: requesting key 8D77295D from hkp server pgp.mit.edu
gpg: key 8D77295D: public key “Eric Evans ” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

gpg: requesting key 2B5C1B00 from hkp server pgp.mit.edu
gpg: key 2B5C1B00: public key “Sylvain Lebresne (pcmanus) ” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

安装cassandra

# apt-get update && apt-get install cassandra

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.