Last active
December 20, 2015 03:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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