script to install elasticsearch

This commit is contained in:
j 2019-11-17 16:34:26 +01:00
parent fe023c2f97
commit f0a46db39f

8
vm/install_elasticsearch.sh Executable file
View file

@ -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"