Last active
February 22, 2018 22:38
-
-
Save xmppjingle/34217c087034ba87d3b29526795e6ed1 to your computer and use it in GitHub Desktop.
debian_7_elastic.sh
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 | |
sudo apt-get update | |
# Properties | |
sudo apt-get install -y software-properties-common | |
# Add Repos | |
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | |
# Update | |
sudo apt-get update | |
# Install Java | |
sudo apt-get install -y oracle-java8-installer | |
# Check | |
javac -version | |
sudo apt update | |
sudo apt install net-tools wget vim | |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
sudo apt-get install apt-transport-https | |
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list | |
apt-get update | |
sudo apt-get update && sudo apt-get install elasticsearch | |
service elasticsearch start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment