WARNING: Version 1.3 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Setup
editSetup
editThis section includes information on how to setup elasticsearch and get it running. If you haven’t already, download it, and then check the installation docs.
Elasticsearch can also be installed from our repositories using apt
or yum
.
See Repositories.
Installation
editAfter downloading the latest release and extracting it, elasticsearch can be started using:
$ bin/elasticsearch
Under *nix system, the command will start the process in the foreground.
To run it in the background, add the -d
switch to it:
$ bin/elasticsearch -d
Java version
editElasticsearch is built using Java, and requires at least Java 7 in order to run [1.2.0] Added in 1.2.0. Was at least Java 6 before . Only Oracle’s Java and the OpenJDK are supported.
We recommend installing the Java 8 update 20 or later, or Java 7 update 55 or later. Previous versions of Java 7 are known to have bugs that can cause index corruption and data loss.
The version of Java to use can be configured by setting the JAVA_HOME
environment variable.