setup.asciidoc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 7] in order to run
  27. added[1.2.0,Was at least Java 6 before].
  28. The version of Java that will be used can be set by setting the
  29. `JAVA_HOME` environment variable.
  30. .*NIX
  31. *************************************************************************
  32. There are added features when using the `elasticsearch` shell script.
  33. The first, which was explained earlier, is the ability to easily run the
  34. process either in the foreground or the background.
  35. Another feature is the ability to pass `-X` and `-D` or getopt long style
  36. configuration parameters directly to the script. When set, all override
  37. anything set using either `JAVA_OPTS` or `ES_JAVA_OPTS`. For example:
  38. [source,sh]
  39. --------------------------------------------------
  40. $ bin/elasticsearch -Xmx2g -Xms2g -Des.index.store.type=memory --node.name=my-node
  41. --------------------------------------------------
  42. *************************************************************************
  43. --
  44. include::setup/configuration.asciidoc[]
  45. include::setup/as-a-service.asciidoc[]
  46. include::setup/as-a-service-win.asciidoc[]
  47. include::setup/dir-layout.asciidoc[]
  48. include::setup/repositories.asciidoc[]
  49. include::setup/upgrade.asciidoc[]