Skip to content

Instantly share code, notes, and snippets.

@desmondmorris
Created March 31, 2015 14:39
Show Gist options
  • Save desmondmorris/babc7e5ac8c0f543ff2f to your computer and use it in GitHub Desktop.
Save desmondmorris/babc7e5ac8c0f543ff2f to your computer and use it in GitHub Desktop.
Installing ElasticSearch on OSX via Homebrew

Elasticsearch on OSX via Homebrew

Requirements

  • OSX with Homebrew installed

Installation

brew update
brew install elasticsearch

Usage

Start the server by running the following: elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml

Your server should be running on port 9200. Test that it is working by running curl http://localhost:9200/_cluster/health?pretty=true. You should see something similar to:

{
  "cluster_name" : "elasticsearch_desmondmorris",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0
}

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment