Skip to content

Instantly share code, notes, and snippets.

@yano3
Created December 16, 2015 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yano3/4f0d258f260a30992639 to your computer and use it in GitHub Desktop.
Save yano3/4f0d258f260a30992639 to your computer and use it in GitHub Desktop.
brew install elasticsearch
$ brew install elasticsearch                                                                                                                                                                                  (git)-[master]
==> Downloading https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.1.0/elasticsearch-2.1.0.tar.gz
######################################################################## 100.0%
==> Caveats
Data:    /usr/local/var/elasticsearch/elasticsearch_xxxxxxxxxx/
Logs:    /usr/local/var/log/elasticsearch/elasticsearch_xxxxxxxxxx.log
Plugins: /usr/local/Cellar/elasticsearch/2.1.0_1/libexec/plugins/
Config:  /usr/local/etc/elasticsearch/

To have launchd start elasticsearch at login:
  ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
Then to load elasticsearch now:
  launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
Or, if you don't want/need launchctl, you can just run:
  elasticsearch

WARNING: launchctl will fail when run under tmux.
==> Summary
🍺  /usr/local/Cellar/elasticsearch/2.1.0_1: 52 files, 31M, built in 2.9 minutes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment