Skip to content

How to Setup a Single Elasticsearch Instance in One Minutes

Gary Gao edited this page May 22, 2016 · 1 revision

The following commands show how to setup a single-machine Elasticsearch-2.3.3 as quick as you can. Note: This is not for production environment.

# Install Java Runtime Environment if You Don't have, the following shows how to manually install jre1.8
wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz -O jdk-8u5-linux-x64.tar.gz

tar zxvf jdk-8u5-linux-x64.tar.gz

ln -s jdk-8u5-linux-x64 jdk

## you have to specify `JAVA_HOME` if java is not in `$PATH`
export JAVA_HOME=`pwd`/jdk

# Download Elasticsearch-2.3.3
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.3/elasticsearch-2.3.3.tar.gz -O elasticsearch-2.3.3.tar.gz

tar zxvf elasticsearch-2.3.3.tar.gz

ln -s elasticsearch-2.3.3 elasticsearch

## Start Elasticsearch in foreground with default config
./elasticsearch/bin/elasticsearch

## or if you want to make Elasticsearch running in background
./elasticsearch/bin/elasticsearch -d

References

  1. https://www.elastic.co/downloads/elasticsearch
  2. https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps

Clone this wiki locally