setup.asciidoc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 background.
  18. To run it in the foreground, add the `-f` switch to it:
  19. [source,sh]
  20. --------------------------------------------------
  21. $ bin/elasticsearch -f
  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` directly to the
  33. script. When set, both override anything set using either `JAVA_OPTS` or
  34. `ES_JAVA_OPTS`. For example:
  35. [source,sh]
  36. --------------------------------------------------
  37. $ bin/elasticsearch -f -Xmx2g -Xms2g -Des.index.store.type=memory
  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[]