Skip to content

Instantly share code, notes, and snippets.

@lologhi
Last active August 29, 2015 14:05
Show Gist options
  • Save lologhi/491f96d24be7980fda9c to your computer and use it in GitHub Desktop.
Save lologhi/491f96d24be7980fda9c to your computer and use it in GitHub Desktop.
Install elasticsearch on Ubuntu 14.04

## Install Java

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

## Install elasticsearch

In AWS, you can't edit /etc/apt/sources.list, as it's re-generated at each reboot.

# add elasticsearch repo key
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
# add the elasticsearch repo in apt sources
echo "deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasicsearch.list
sudo apt-get update
sudo apt-get install elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment