Skip to content

Instantly share code, notes, and snippets.

@pangkalizer
Created July 23, 2014 07:43
Show Gist options
  • Save pangkalizer/bc0ee5521489e3b23908 to your computer and use it in GitHub Desktop.
Save pangkalizer/bc0ee5521489e3b23908 to your computer and use it in GitHub Desktop.
elasticsearch on ubuntu 14.14
sudo apt-get install openjdk-7-jre-headless -y
sudo wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
# add the following line to /etc/apt/sources.list
deb http://packages.elasticsearch.org/elasticsearch/1.2/debian stable main
sudo apt-get update
sudo apt-get install elasticsearch
sudo update-rc.d elasticsearch defaults 95 10
# remove public access!!!
# edit /etc/elasticsearch/elasticsearch.yml
network.bind_host: localhost
script.disable_dynamic: true
# start
sudo /etc/init.d/elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment