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