Skip to content

Instantly share code, notes, and snippets.

@kosho
Created August 30, 2017 07:31
Show Gist options
  • Save kosho/0b1e66c026ba119c4e689905dbd45161 to your computer and use it in GitHub Desktop.
Save kosho/0b1e66c026ba119c4e689905dbd45161 to your computer and use it in GitHub Desktop.
#!/bin/bash
arch=$(echo `uname`-`uname -m` | tr '[:upper:]' '[:lower:]')
mkdir $1
cd $1
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$1.tar.gz | tar zxf -
cd elasticsearch-$1
yes y | bin/elasticsearch-plugin install x-pack
#bin/elasticsearch-plugin install analysis-icu
bin/elasticsearch-plugin install analysis-kuromoji
cd ..
curl https://artifacts.elastic.co/downloads/kibana/kibana-$1-$arch.tar.gz | tar zxf -
cd kibana-$1-$arch
#ln -s config ../../config/kibana
bin/kibana-plugin install x-pack
cd ..
curl https://artifacts.elastic.co/downloads/logstash/logstash-$1.tar.gz | tar zxf -
cd logstash-$1
bin/logstash-plugin install x-pack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment