setup.asciidoc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. NOTE: Elasticsearch can also be installed from our repositories using `apt` or `yum`.
  9. See <<setup-repositories>>.
  10. [[setup-installation]]
  11. [float]
  12. == Installation
  13. After link:/download[downloading] the latest release and extracting it,
  14. *elasticsearch* can be started using:
  15. [source,sh]
  16. --------------------------------------------------
  17. $ bin/elasticsearch
  18. --------------------------------------------------
  19. Under *nix system, the command will start the process in the foreground.
  20. To run it in the background, add the `-d` switch to it:
  21. [source,sh]
  22. --------------------------------------------------
  23. $ bin/elasticsearch -d
  24. --------------------------------------------------
  25. Elasticsearch is built using Java, and requires at least
  26. http://java.sun.com/javase/downloads/index.jsp[Java 6] in order to run.
  27. The version of Java that will be used can be set by setting the
  28. `JAVA_HOME` environment variable.
  29. .*NIX
  30. *************************************************************************
  31. There are added features when using the `elasticsearch` shell script.
  32. The first, which was explained earlier, is the ability to easily run the
  33. process either in the foreground or the background.
  34. Another feature is the ability to pass `-X` and `-D` or getopt long style
  35. configuration parameters directly to the script. When set, all override
  36. anything set using either `JAVA_OPTS` or `ES_JAVA_OPTS`. For example:
  37. [source,sh]
  38. --------------------------------------------------
  39. $ bin/elasticsearch -Xmx2g -Xms2g -Des.index.store.type=memory --node.name=my-node
  40. --------------------------------------------------
  41. *************************************************************************
  42. --
  43. include::setup/configuration.asciidoc[]
  44. include::setup/as-a-service.asciidoc[]
  45. include::setup/as-a-service-win.asciidoc[]
  46. include::setup/dir-layout.asciidoc[]
  47. include::setup/repositories.asciidoc[]
  48. include::setup/upgrade.asciidoc[]