Last active
December 26, 2015 04:49
-
-
Save MinCha/7095749 to your computer and use it in GitHub Desktop.
ElasticSearch Install Script
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
#!/bin/bash | |
es="elasticsearch-0.90.11" | |
ip="`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`" | |
http_port=21000 | |
trans_port=21001 | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/$es.tar.gz | |
gzip -d $es.tar.gz | |
tar -xvf $es.tar | |
mv ./$es/config/elasticsearch.yml ./$es/config/elasticsearch.yml.old | |
echo "cluster.name: music-es-dev" > ./$es/config/elasticsearch.yml | |
echo "node.name: $ip" >> ./$es/config/elasticsearch.yml | |
echo "http.port: $http_port" >> ./$es/config/elasticsearch.yml | |
echo "transport.tcp.port: $trans_port" >> ./$es/config/elasticsearch.yml | |
echo "multicast.enabled: true" >> ./$es/config/elasticsearch.yml | |
#echo "discovery.zen.ping.unicast.hosts: [$ip]" >> ./$es/config/elasticsearch.yml | |
./$es/bin/plugin --install mobz/elasticsearch-head | |
./$es/bin/plugin --install lukas-vlcek/bigdesk | |
export ES_HEAP_SIZE=2G && ./$es/bin/elasticsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment