forked from 0x2620/pandora
script to install elasticsearch
This commit is contained in:
parent
fe023c2f97
commit
f0a46db39f
1 changed files with 8 additions and 0 deletions
8
vm/install_elasticsearch.sh
Executable file
8
vm/install_elasticsearch.sh
Executable 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"
|
Loading…
Reference in a new issue