Skip to content

Instantly share code, notes, and snippets.

@morkrispil
Created January 18, 2016 14:33
Show Gist options
  • Save morkrispil/85124abb646ab29db9bb to your computer and use it in GitHub Desktop.
Save morkrispil/85124abb646ab29db9bb to your computer and use it in GitHub Desktop.
Installing Elastic 2.0 on a clean Ubuntu 14.04 (single node)
#java 8 – includes some interactive responses on your side
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
#test it:
java -version
#should be: java version “1.8.XX”
#fixing apt-get, installation and post service config
wget -qO – https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add –
echo “deb http://packages.elastic.co/elasticsearch/2.x/debian stable main” | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
sudo apt-get update && sudo apt-get install elasticsearch
sudo update-rc.d elasticsearch defaults 95 10
#start service
sudo /etc/init.d/elasticsearch start
#say hi
curl ‘http://localhost:9200?pretty';
#test response
#…You Know, for Search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment