setup.asciidoc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [[setup]]
  2. = Setup
  3. [partintro]
  4. --
  5. This section includes information on how to setup *elasticsearch* and
  6. get it running. If you haven't already, http://www.elasticsearch.org/download[download] it, and
  7. then check the <<setup-installation,installation>> docs.
  8. [[setup-installation]]
  9. [float]
  10. == Installation
  11. After link:/download[downloading] the latest release and extracting it,
  12. *elasticsearch* can be started using:
  13. [source,sh]
  14. --------------------------------------------------
  15. $ bin/elasticsearch
  16. --------------------------------------------------
  17. Under *nix system, the command will start the process in the foreground.
  18. To run it in the background, add the `-d` switch to it:
  19. [source,sh]
  20. --------------------------------------------------
  21. $ bin/elasticsearch -d
  22. --------------------------------------------------
  23. Elasticsearch is built using Java, and requires at least
  24. http://java.sun.com/javase/downloads/index.jsp[Java 6] in order to run.
  25. The version of Java that will be used can be set by setting the
  26. `JAVA_HOME` environment variable.
  27. .*NIX
  28. *************************************************************************
  29. There are added features when using the `elasticsearch` shell script.
  30. The first, which was explained earlier, is the ability to easily run the
  31. process either in the foreground or the background.
  32. Another feature is the ability to pass `-X` and `-D` or getopt long style
  33. configuration parameters directly to the script. When set, all override
  34. anything set using either `JAVA_OPTS` or `ES_JAVA_OPTS`. For example:
  35. [source,sh]
  36. --------------------------------------------------
  37. $ bin/elasticsearch -f -Xmx2g -Xms2g -Des.index.store.type=memory --node.name=my-node
  38. --------------------------------------------------
  39. *************************************************************************
  40. --
  41. include::setup/configuration.asciidoc[]
  42. include::setup/as-a-service.asciidoc[]
  43. include::setup/as-a-service-win.asciidoc[]
  44. include::setup/dir-layout.asciidoc[]
  45. include::setup/repositories.asciidoc[]