-
Notifications
You must be signed in to change notification settings - Fork 1
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