- OSX with Homebrew installed
brew update
brew install elasticsearch
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