2013-08-28 19:24:34 -04:00
|
|
|
[[setup]]
|
|
|
|
= Setup
|
|
|
|
|
|
|
|
[partintro]
|
|
|
|
--
|
|
|
|
This section includes information on how to setup *elasticsearch* and
|
|
|
|
get it running. If you haven't already, http://www.elasticsearch.org/download[download] it, and
|
|
|
|
then check the <<setup-installation,installation>> docs.
|
|
|
|
|
|
|
|
[[setup-installation]]
|
|
|
|
[float]
|
|
|
|
== Installation
|
|
|
|
|
|
|
|
After 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 background.
|
|
|
|
To run it in the foreground, add the `-f` switch to it:
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
$ bin/elasticsearch -f
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
ElasticSearch is built using Java, and requires at least
|
|
|
|
http://java.sun.com/javase/downloads/index.jsp[Java 6] in order to run.
|
|
|
|
The version of Java that will be used can be set by setting the
|
|
|
|
`JAVA_HOME` environment variable.
|
|
|
|
|
|
|
|
.*NIX
|
|
|
|
*************************************************************************
|
|
|
|
There are added features when using the `elasticsearch` shell script.
|
|
|
|
The first, which was explained earlier, is the ability to easily run the
|
|
|
|
process either in the foreground or the background.
|
|
|
|
|
|
|
|
Another feature is the ability to pass `-X` and `-D` directly to the
|
|
|
|
script. When set, both override anything set using either `JAVA_OPTS` or
|
|
|
|
`ES_JAVA_OPTS`. For example:
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
2013-09-09 13:06:09 -04:00
|
|
|
$ bin/elasticsearch -f -Xmx2g -Xms2g -Des.index.store.type=memory
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
*************************************************************************
|
|
|
|
--
|
|
|
|
|
|
|
|
include::setup/configuration.asciidoc[]
|
|
|
|
|
|
|
|
include::setup/as-a-service.asciidoc[]
|
|
|
|
|
2013-09-23 11:24:31 -04:00
|
|
|
include::setup/as-a-service-win.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::setup/dir-layout.asciidoc[]
|
|
|
|
|