-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-elasticsearch.sh
executable file
·41 lines (34 loc) · 1.45 KB
/
install-elasticsearch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
echo "Install Elasticsearch"
echo "WARNING: if Elasticsearch is already installed the next command will"
echo "force to install 1.1.0"
echo "Please press cntrl+C to abort"
# Add Repo
zypper ar -f http://packages.elastic.co/elasticsearch/1.1/centos Elasticsearch_1.1_repository
# Import key
zypper --gpg-auto-import-keys ref
zypper in --oldpackage elasticsearch-1.1.0-1.noarch
# Install Elasticsearch Head Plugin
cd /usr/share/elasticsearch/bin
sudo su
./plugin -install mobz/elasticsearch-head/
# das erzeugt ein Unterverzeichnis plugins mit weiterm UVZ head.
# install further elasticsearch plugins
## Plugin analysis-icu
cd /usr/share/elasticsearch/plugins
mkdir analysis-icu
cd analysis-icu
wget -4 http://download.elasticsearch.org/elasticsearch/elasticsearch-analysis-icu/elasticsearch-analysis-icu-2.1.0.zip
unzip elasticsearch-analysis-icu-2.1.0.zip
## Plugin analysis-combo
cd /usr/share/elasticsearch/plugins
mkdir analysis-combo
cd analysis-combo
wget -4 https://repo1.maven.org/maven2/com/yakaz/elasticsearch/plugins/elasticsearch-analysis-combo/1.5.1/elasticsearch-analysis-combo-1.5.1.zip
unzip elasticsearch-analysis-combo-1.5.1.zip
chown toscience:users /usr/share/elasticsearch
chown elasticsearch:elasticsearch /etc/elasticsearch/
#chown elasticsearch:elasticsearch /etc/elasticsearch/elasticsearch.pid
echo "Start Elasticsearch"
systemctl enable elasticsearch.service
systemctl start elasticsearch.service