| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 | [[setup]]= Setup[partintro]--This section includes information on how to setup *elasticsearch* andget it running. If you haven't already, http://www.elasticsearch.org/download[download] it, andthen check the <<setup-installation,installation>> docs.NOTE: Elasticsearch can also be installed from our repositories using `apt` or `yum`.See <<setup-repositories>>.[[setup-installation]][float]== InstallationAfter link:/download[downloading] the latest release and extracting it,*elasticsearch* can be started using:[source,sh]--------------------------------------------------$ 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:[source,sh]--------------------------------------------------$ bin/elasticsearch -d--------------------------------------------------.*NIX*************************************************************************There are added features when using the `elasticsearch` shell script.The first, which was explained earlier, is the ability to easily run theprocess either in the foreground or the background.Another feature is the ability to pass `-X` and `-D` or getopt long styleconfiguration parameters directly to the script. When set, all overrideanything set using either `JAVA_OPTS` or `ES_JAVA_OPTS`. For example:[source,sh]--------------------------------------------------$ bin/elasticsearch -Xmx2g -Xms2g -Des.index.store.type=memory --node.name=my-node--------------------------------------------------*************************************************************************[float][[jvm-version]]== Java (JVM) versionElasticsearch is built using Java, and requires at leasthttp://www.oracle.com/technetwork/java/javase/downloads/index.html[Java 7] inorder to run. Only Oracle's Java and the OpenJDK are supported. The same JVMversion should be used on all Elasticsearch nodes and clients.We recommend installing the *Java 8 update 20 or later*, or *Java 7 update 55or later*.  Previous versions of Java 7 are known to have bugs that can causeindex corruption and data loss.  Elasticsearch will refuse to start if aknown-bad version of Java is used.The version of Java to use can be configured by setting the `JAVA_HOME`environment variable.--include::setup/configuration.asciidoc[]include::setup/as-a-service.asciidoc[]include::setup/as-a-service-win.asciidoc[]include::setup/dir-layout.asciidoc[]include::setup/repositories.asciidoc[]include::setup/upgrade.asciidoc[]
 |