Last active
April 6, 2017 07:24
-
-
Save Sryther/813bcdf7aecee55e704e99c6e62c17dd to your computer and use it in GitHub Desktop.
Install an Elasticsearch and Kibana (5.2.2) on Debian
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 | |
# Install dependencies and tools | |
apt-get update | |
apt-get install software-properties-common -y | |
add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | |
apt-get update | |
apt-get install oracle-java8-installer vim curl -y | |
# Download debs | |
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.deb | |
curl -O https://artifacts.elastic.co/downloads/kibana/kibana-5.2.2.deb | |
# Install the packages | |
dpkg -i elasticsearch-5.2.2.deb | |
dpkg -i kibana-5.2.2.deb | |
# Edit the configuration to match your server | |
vim /etc/elasticsearch/elasticsearch.yml | |
vim /etc/kibana/kibana.yml | |
# Install X-Pack | |
cd /usr/share/elasticsearch | |
bin/elasticsearch-plugin install x-pack | |
cd /usr/share/kibana | |
bin/kibana-plugin install x-pack | |
# Start on boot (ps -p 1 to know if init or systemd is used), systemd: | |
/bin/systemctl daemon-reload | |
/bin/systemctl enable elasticsearch.service | |
/bin/systemctl enable kibana.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment