Created
July 10, 2015 17:08
-
-
Save gnrfan/62815b2e0f12d8ca5ed2 to your computer and use it in GitHub Desktop.
Install ElasticSearch 1.6.0 on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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