forked from rolftimmermans/.bin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-elasticsearch
executable file
·28 lines (27 loc) · 1.27 KB
/
start-elasticsearch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#If this is your first install, automatically load ElasticSearch on login with:
# mkdir -p ~/Library/LaunchAgents
# ln -nfs /usr/local/Cellar/elasticsearch/0.19.0/homebrew.mxcl.elasticsearch.plist ~/Library/LaunchAgents/
# launchctl load -wF ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
#
#If this is an upgrade and you already have the homebrew.mxcl.elasticsearch.plist loaded:
# launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
# ln -nfs /usr/local/Cellar/elasticsearch/0.19.0/homebrew.mxcl.elasticsearch.plist ~/Library/LaunchAgents/
# launchctl load -wF ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
#
#To stop the ElasticSearch daemon:
# launchctl unload -wF ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
#
#To start ElasticSearch manually:
elasticsearch -D es.config=`echo /usr/local/Cellar/elasticsearch/*/config/elasticsearch.yml`
#
#See the 'elasticsearch.yml' file for configuration options.
#
#You'll find the ElasticSearch log here:
# open /usr/local/var/log/elasticsearch/elasticsearch_jippeholwerda.log
#
#The folder with cluster data is here:
# open /usr/local/var/elasticsearch/elasticsearch_jippeholwerda/
#
#You should see ElasticSearch running:
# open http://localhost:9200/