Last active
June 7, 2017 14:43
-
-
Save phamquick/95c473995319ccb8e749 to your computer and use it in GitHub Desktop.
Install ElasticSearch 1.5.2 + Basic Auth on Centos 6.x Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
yum update -y | |
#*************** INSTALL JAVA JDK 8*********************# | |
yum install java-1.8.0-openjdk -y | |
#*************** INSTALL ELASTICSEARCH 1.5.2 + RECOMMENDED PLUGINS *********************# | |
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.2.noarch.rpm | |
yum install elasticsearch-1.5.2.noarch.rpm -y | |
rm -f elasticsearch-1.5.2.noarch.rpm | |
cd /usr/share/elasticsearch/ | |
./bin/plugin -install mobz/elasticsearch-head | |
./bin/plugin -install lukas-vlcek/bigdesk | |
./bin/plugin install elasticsearch/elasticsearch-analysis-kuromoji/2.5.0 | |
./bin/plugin -install royrusso/elasticsearch-HQ | |
./bin/plugin --url https://dl.dropboxusercontent.com/u/1598491/elasticsearch-analysis-vietnamese-0.1.5.zip --install analysis-vietnamese | |
cd /usr/share/elasticsearch/plugins | |
mkdir http-basic | |
cd http-basic | |
wget https://github.com/Asquera/elasticsearch-http-basic/releases/download/v1.5.0/elasticsearch-http-basic-1.5.0.jar | |
cd /etc/elasticsearch | |
nano elasticsearch.yml | |
#************************************# | |
cluster.name: mtom | |
http.cors.enabled: true | |
http.cors.allow-origin: "*" | |
http.basic.enabled: true | |
http.basic.user: YOUR_USER_NAME | |
http.basic.password: YOUR_PASSWORD | |
#************************************# | |
service elasticsearch start | |
chkconfig elasticsearch on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment