how to install – apache cassandra with openjdk in ubuntu 14.04

# openjdk-8-jdk

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:openjdk-r/ppa

update-alternatives –set java /usr/java/jdk1.8.0_60/bin/java
# update-alternatives –all

# cassandra

sudo gpg –keyserver pgp.mit.edu –recv-keys 2B5C1B00
sudo gpg –export –armor 2B5C1B00 | sudo apt-key add –
sudo gpg –keyserver pgp.mit.edu –recv-keys 0353B12C
sudo gpg –export –armor 0353B12C | sudo apt-key add –

sudo vi /etc/apt/sources.list.d/cassandra.sources.list
deb http://www.apache.org/dist/cassandra/debian 21x main
deb-src http://www.apache.org/dist/cassandra/debian 21x main

sudo vi /etc/apt/sources.list.d/openjdk-r-ppa-trusty.list
deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main

sudo apt-get update
sudo apt-get install cassandra

redis-server ubuntu 12.04

기본 레포지토리의 sudo apt-get install redis-server 로는 2.2.12 까지밖에 버전이 안 올라가 있음

dev@server:~$ redis-cli info | grep redis_version
redis_version:2.2.12
dev@server:~$ sudo add-apt-repository ppa:rwky/redis

dev@server:~$ sudo apt-get update

dev@server:~$ sudo apt-get install redis-server

dev@server:~$ redis-cli info | grep redis_version
redis_version:3.0.6

14.04 에서는 아직 테스트 해보지 않았음