installation.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [[setup-installation]]
  2. == Installation
  3. After link:/download[downloading] the latest release and extracting it,
  4. *elasticsearch* can be started using:
  5. [source,sh]
  6. --------------------------------------------------
  7. $ bin/elasticsearch
  8. --------------------------------------------------
  9. Under *nix system, the command will start the process in the background.
  10. To run it in the foreground, add the `-f` switch to it:
  11. [source,sh]
  12. --------------------------------------------------
  13. $ bin/elasticsearch -f
  14. --------------------------------------------------
  15. ElasticSearch is built using Java, and requires at least
  16. http://java.sun.com/javase/downloads/index.jsp[Java 6] in order to run.
  17. The version of Java that will be used can be set by setting the
  18. `JAVA_HOME` environment variable.
  19. .*NIX
  20. *************************************************************************
  21. There are added features when using the `elasticsearch` shell script.
  22. The first, which was explained earlier, is the ability to easily run the
  23. process either in the foreground or the background.
  24. Another feature is the ability to pass `-X` and `-D` directly to the
  25. script. When set, both override anything set using either `JAVA_OPTS` or
  26. `ES_JAVA_OPTS`. For example:
  27. [source,sh]
  28. --------------------------------------------------
  29. $ bin/elasticsearch -f -Xmx2g -Xms2g -Des.index.store.type=memory
  30. --------------------------------------------------
  31. *************************************************************************