Skip to content

Instantly share code, notes, and snippets.

@xmppjingle
Last active February 22, 2018 22:38
Show Gist options
  • Save xmppjingle/34217c087034ba87d3b29526795e6ed1 to your computer and use it in GitHub Desktop.
Save xmppjingle/34217c087034ba87d3b29526795e6ed1 to your computer and use it in GitHub Desktop.
debian_7_elastic.sh
#!/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