Skip to content

Instantly share code, notes, and snippets.

@wbzyl
Last active September 29, 2015 23:48
Show Gist options
  • Save wbzyl/1687963 to your computer and use it in GitHub Desktop.
Save wbzyl/1687963 to your computer and use it in GitHub Desktop.
ElasticSearch
#! /bin/bash
progname=$(basename $0 .sh)
configfile=$HOME/.data/etc/elasticsearch.yml
echo ""
echo "---- $configfile"
cat $configfile
echo "---------------------------------------------------------------------------"
echo ""
$HOME/.elasticsearch/elasticsearch/bin/elasticsearch -f -Des.config=$configfile
cluster.name: _some_name_for_example_your_login_
# indeksy: http://localhost:9200/<index name>/_status – sprawdzanie statusu
index.number_of_shards: 1
index.number_of_replicas: 0
# ścieżki
path.data: /home/wbzyl/.data/var/lib/elasticsearch
path.logs: /home/wbzyl/.data/var/log/elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment