brew.asciidoc 1.8 KB

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