pilot
10/26/2016 - 3:20 PM

Install ElasticSearch 1.6.0 on Ubuntu 14.04

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