Skip to content

Instantly share code, notes, and snippets.

@christophior
Last active December 20, 2015 03:49
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 christophior/6066586 to your computer and use it in GitHub Desktop.
Save christophior/6066586 to your computer and use it in GitHub Desktop.
How to install and run elasticsearch on a mac. Version number might be different so keep that consistent when installing.
# download elasticsearch from their site and unzip (http://www.elasticsearch.org/download/)
# open a console in the download directory and pull down the elastic search service wrapper from github.
$ cd ~/Downloads
$ git clone https://github.com/elasticsearch/elasticsearch-servicewrapper.git elasticsearch-servicewrapper
# Now we will move the service into place
$ cd ~/Downloads
$ sudo mv elasticsearch-0.90.2 /usr/local/share
$ cd elasticsearch-servicewrapper
$ sudo mv service /usr/local/share/elasticsearch-0.90.2/bin
$ cd /usr/local/share
$ sudo ln -s elasticsearch-0.90.2 elasticsearch
$ sudo chown -R root:wheel elasticsearch
# start elastic search
$ cd /usr/local/share/elasticsearch
$ sudo bin/service/elasticsearch start
# will be running on http://localhost:9200/
# You should see the following output
# Starting ElasticSearch...
# Waiting for ElasticSearch...
# .
# .
# .
# running: PID:27882
# stopping elasticsearch
$ cd /usr/local/share/elasticsearch
$ sudo bin/service/elasticsearch stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment