This 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.


After 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 background. To run it in the foreground, add the -f switch to it:

$ bin/elasticsearch -f

ElasticSearch is built using Java, and requires at least Java 6 in order to run. The version of Java that will be used can be set by setting the JAVA_HOME environment variable.