Skip to content

Instantly share code, notes, and snippets.

@sandcastle
Last active January 2, 2016 19:39
Show Gist options
  • Save sandcastle/8351869 to your computer and use it in GitHub Desktop.
Save sandcastle/8351869 to your computer and use it in GitHub Desktop.
Script to install Elastic Search v1.1.1 on Ubuntu 14.04.
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# download and install
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
sudo dpkg -i elasticsearch-1.1.1.deb
sudo rm -rf elasticsearch-1.1.1.deb
sudo service elasticsearch start
#curl http://localhost:9200

Main configuration:

$ sudo nano /etc/default/elasticsearch

Configuration file

$ sudo nano /etc/elasticsearch/elasticsearch.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment