From f0a46db39f8b99ce2f3a549e50a7e2e3e7d7c055 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 17 Nov 2019 16:34:26 +0100 Subject: [PATCH] script to install elasticsearch --- vm/install_elasticsearch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 vm/install_elasticsearch.sh diff --git a/vm/install_elasticsearch.sh b/vm/install_elasticsearch.sh new file mode 100755 index 00000000..87e7a0ba --- /dev/null +++ b/vm/install_elasticsearch.sh @@ -0,0 +1,8 @@ +#!/bin/sh +curl -sL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - +echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elasticsearch.list +apt-get update -qq +apt-get -y install elasticsearch +systemctl enable elasticsearch.service +systemctl start elasticsearch.service +#curl -X GET "http://localhost:9200/?pretty"