Skip to content

Instantly share code, notes, and snippets.

@Globegitter
Last active November 18, 2020 12:52
Show Gist options
  • Star 44 You must be signed in to star a gist
  • Fork 36 You must be signed in to fork a gist
  • Save Globegitter/662713f90d5af5b4269d to your computer and use it in GitHub Desktop.
Save Globegitter/662713f90d5af5b4269d to your computer and use it in GitHub Desktop.
Easy install for elasticsearch on Ubuntu 14.04
cd ~
##If you want to install OpenJDK
#sudo apt-get update
#sudo apt-get install openjdk-8-jre-headless -y
###Or if you want to install Oracle JDK, which seems to have slightly better performance
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.2.deb
sudo dpkg -i elasticsearch-1.4.2.deb
### NOT starting elasticsearch by default on bootup, please execute
sudo update-rc.d elasticsearch defaults 95 10
### In order to start elasticsearch, execute
sudo /etc/init.d/elasticsearch start
#To test it all worked:
#curl http://localhost:9200
#Should return some JSON Object including the version number
@kaleidoscope684
Copy link

Thanks for write-up! Successfully installed and running in under 5 minutes. I spent hours last night trying to get this to run.

@ramonsenadev
Copy link

Thanks!! All work!! :)

@luisdaher
Copy link

thanks for sharing this! :D

@KIMSeongJoo
Copy link

thanks!!!

@shkurkin
Copy link

shkurkin commented Oct 2, 2015

Appreciated!

@shredding
Copy link

Finally one that worked, thanks!

@firmanm
Copy link

firmanm commented Oct 11, 2015

haturnuhun

@hwatkins
Copy link

Worked well, just need to update the version like mentioned in the script

@macejmic
Copy link

Thank you very much! 👍

@veronicacannon
Copy link

Perfect. Well written and very helpful. Thank you!

@Sasikala-Ravichandran
Copy link

Thanks a lot for your effort ...It was indeed very helpful...

@tmacneil
Copy link

tmacneil commented Dec 4, 2015

Very nice! Worked like a charm. FYI to anyone using ElasticSearch on AWS, they use version 1.5.2. I literally replaced "1.4.2" with "1.5.2" in the above and it worked fine.

@jtomaszewski
Copy link

Use this for elasticsearch 2.x :

wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list

Copy link

ghost commented Mar 10, 2016

Thanks for amazing write up.

@nihalni1
Copy link

nihalni1 commented Jun 3, 2016

Thnq... Helped a lott...!!

@samynathan17
Copy link

1.how to setup for Elasticsearch multi node cluster ?
2. what are all the steps doing in elasticsearch.yml file?

@rordev20
Copy link

rordev20 commented Apr 11, 2017

Thanks alot

@smcnally
Copy link

Thanks for these instructions. FWIW, I had to mod these steps for my 14.04 installation:

Add tools for add-apt-respository (probably because this box is upgraded from previous versions):

sudo apt-get install python-software-properties

then add the openjdk repo:

sudo add-apt-repository ppa:openjdk-r/ppa

then install worked. dpkg install failed on the latest elasticsearch deb (5.5.0), so I got the latest in the 2.x line --

https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.5/elasticsearch-2.4.5.deb

which is working well now.

@permarja
Copy link

permarja commented Aug 2, 2017

Thanks!!!!!

@krishnasrihari
Copy link

Thanks!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment