brew.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 {es}:
  13. [source,sh]
  14. -------------------------
  15. brew install elastic/tap/elasticsearch-full
  16. -------------------------
  17. This installs the most recently released distribution of {es}.
  18. [[brew-layout]]
  19. ==== Directory layout for Homebrew installs
  20. When you install {es} with `brew install` the config files, logs,
  21. and data directory are stored in the following locations.
  22. [cols="<h,<,<m,<m",options="header",]
  23. |=======================================================================
  24. | Type | Description | Default Location | Setting
  25. | home
  26. | Elasticsearch home directory or `$ES_HOME`
  27. | /usr/local/var/homebrew/linked/elasticsearch-full
  28. d|
  29. | bin
  30. | Binary scripts including `elasticsearch` to start a node
  31. and `elasticsearch-plugin` to install plugins
  32. | /usr/local/var/homebrew/linked/elasticsearch-full/bin
  33. d|
  34. | conf
  35. | Configuration files including `elasticsearch.yml`
  36. | /usr/local/etc/elasticsearch
  37. | <<config-files-location,ES_PATH_CONF>>
  38. | data
  39. | The location of the data files of each index / shard allocated
  40. on the node. Can hold multiple locations.
  41. | /usr/local/var/lib/elasticsearch
  42. | path.data
  43. | logs
  44. | Log files location.
  45. | /usr/local/var/log/elasticsearch
  46. | path.logs
  47. | plugins
  48. | Plugin files location. Each plugin will be contained in a subdirectory.
  49. | /usr/local/var/homebrew/linked/elasticsearch/plugins
  50. |
  51. |=======================================================================
  52. include::next-steps.asciidoc[]