Skip to content

Instantly share code, notes, and snippets.

@gwynp
Created September 18, 2017 16:01
Show Gist options
  • Save gwynp/605dd8004fb4f411ccf733324d784c1e to your computer and use it in GitHub Desktop.
Save gwynp/605dd8004fb4f411ccf733324d784c1e to your computer and use it in GitHub Desktop.

Revisions

  1. gwynp created this gist Sep 18, 2017.
    9 changes: 9 additions & 0 deletions Install elasticsearch on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    apt install default-jdk
    wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
    apt install apt-transport-https
    echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
    apt update && apt install elasticsearch
    sed -i "/# network.host: 192.168.0.1/c network.host: 0.0.0.0" /tmp/foo/etc/elasticsearch/elasticsearch.yml
    /bin/systemctl daemon-reload
    /bin/systemctl enable elasticsearch.service
    /bin/systemctl start elasticsearch.service