brew.asciidoc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [[brew]]
  2. === Install {es} on macOS with Homebrew
  3. Elastic publishes Homebrew formulae so you can install {es} with the
  4. https://brew.sh/[Homebrew] package manager.
  5. To install with Homebrew, you first need to tap the
  6. Elastic Homebrew repository:
  7. [source,sh]
  8. -------------------------
  9. brew tap elastic/tap
  10. -------------------------
  11. Once you've tapped the Elastic Homebrew repo, you can use `brew install` to
  12. install the default distribution of {es}:
  13. [source,sh]
  14. -------------------------
  15. brew install elastic/tap/elasticsearch-full
  16. -------------------------
  17. This installs the most recently released default distribution of {es}.
  18. To install the OSS distribution, specify `elastic/tap/elasticsearch-oss`.
  19. [[brew-layout]]
  20. ==== Directory layout for Homebrew installs
  21. When you install {es} with `brew install` the config files, logs,
  22. and data directory are stored in the following locations.
  23. [cols="<h,<,<m,<m",options="header",]
  24. |=======================================================================
  25. | Type | Description | Default Location | Setting
  26. | home
  27. | Elasticsearch home directory or `$ES_HOME`
  28. | /usr/local/var/homebrew/linked/elasticsearch-full
  29. d|
  30. | bin
  31. | Binary scripts including `elasticsearch` to start a node
  32. and `elasticsearch-plugin` to install plugins
  33. | /usr/local/var/homebrew/linked/elasticsearch-full/bin
  34. d|
  35. | conf
  36. | Configuration files including `elasticsearch.yml`
  37. | /usr/local/etc/elasticsearch
  38. | <<config-files-location,ES_PATH_CONF>>
  39. | data
  40. | The location of the data files of each index / shard allocated
  41. on the node. Can hold multiple locations.
  42. | /usr/local/var/lib/elasticsearch
  43. | path.data
  44. | logs
  45. | Log files location.
  46. | /usr/local/var/log/elasticsearch
  47. | path.logs
  48. | plugins
  49. | Plugin files location. Each plugin will be contained in a subdirectory.
  50. | /usr/local/var/homebrew/linked/elasticsearch/plugins
  51. |
  52. |=======================================================================
  53. include::next-steps.asciidoc[]