Skip to content

Instantly share code, notes, and snippets.

@pilot
Forked from gnrfan/es_ubuntu_14.04
Created October 26, 2016 15:20
Show Gist options
  • Save pilot/62363987da7375274e59caf6ef38f690 to your computer and use it in GitHub Desktop.
Save pilot/62363987da7375274e59caf6ef38f690 to your computer and use it in GitHub Desktop.
Install ElasticSearch 1.6.0 on Ubuntu 14.04
# Install PPA tool
echo "Installing software for working with PPA packages..."
sudo apt-get install -y python-software-properties software-properties-common
# Install Oracle Java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
echo "Installing ORACLE Java8..."
sudo apt-get install -y oracle-java8-installer
# Download and install ElasticSearch package
echo "Downloading and installing Elasticsearch..."
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.6.0.deb
sudo dpkg -i elasticsearch-1.6.0.deb
# Activating automatic startup of Elasticsearch on boot
sudo update-rc.d elasticsearch defaults 95 10
# Starting Elasticsearch
echo "Starting up Elasticsearch service..."
sudo /etc/init.d/elasticsearch start
# Testing it works
echo "Testing installation..."
echo "If you see a JSON document with the tagline 'You Know, for Search' it all worked :)"
curl http://localhost:9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment