Elasticsearch its plug elasticsearch-head, Kibana installation

1 article summary

This article is the first part of "Building a FAQ question system", introduces Elasticsearch (ES) and associated plug-elasticsearch-head, Kibana installation, the latter will explain how to add data to Elasticsearch, the query data. Then describes how to use building blocks ES FAQ recall questionnaire system semantics, system requirements Ubuntu16.04.

2 Elasticsearch Profile

Elasticsearch is an established search engine Apache Lucene ™ on the basis of full-text search engine, Lucene can be said is the most advanced, most efficient, full-featured open source search engine framework. Elasticsearch is a real-time distributed and open source full-text search and analysis engine. It can interface to access the service from RESTful Web, and less usage patterns JSON (JavaScript Object Notation) file to store data. It is based on the Java programming language, which makes Elasticsearch can run on different platforms. It enables users to very quickly search for very large amounts of data.
Original link: https://www.yiibai.com/elasticsearch

And the corresponding plug 3 Elasticsearch elasticsearch-head, Kibana installation

3.1 Ubuntu16 mounted Java8

The following steps
① to download JDK8;
in: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html page compressed according to a suitable selection system configuration, where I choose jdk-8u211- Download linux-x64.tar.gz
② decompress the packet, and after extracting file copied to the folder jdk1.8.0_211 / opt;

tar zxvf jdk-8u211-linux-x64.tar.gz
cd /opt
sudo mv /home/pm/Downloads/jdk1.8.0_211 .(注意最后有一个“.”)

③ created in the / bin directory java soft link, and verified;
Here Insert Picture Description
④ Setting Java environment;
sudo gedit / etc / Profile
add end of the file:
Here Insert Picture Description
Save and close after execution:
Source / etc / Profile
echo $ JAVA_HOME
java installed

Installation under Elasticsearch 3.2 Ubuntu16

① in the official website: https://www.elastic.co/downloads/elasticsearc download the installation package, download the latest article elasticsearch-7.1.1-linux-x86_64.tar.gz.
② installation package will be unpacked into the appropriate directory, start Elasticsearch

tar zxvf elasticsearch-7.1.1-linux-x86_64.tar.gz
cd elasticsearch-7.1.1/bin/
./elasticsearch

Enter in your browser http: // localhost: 9200 / the following text is success;
Here Insert Picture Description

3.2 Elasticsearch-head mounting and Kibana

3.2.1 Elasticsearch-head mounting

①elasticsearch after 5.x does not support direct plug-in plugin installation head, but the head is installed as a separate service, you first need to install dependent node, npm, grunt, the command is as follows:

sudo apt-get install nodejs-legacy
sudo apt-get install npm
sudo npm install -g grunt
sudo npm install -g grunt-cli

Note: You may report npm node version is too low, first uninstall using the apt-get:

sudo apt-get remove --purge npm
sudo apt-get remove --purge nodejs
sudo apt-get remove --purge nodejs-legacy

And then install the latest node, npm:

sudo apt-get install nodejs-legacy
sudo apt-get install npm
sudo npm install npm@latest -g
sudo npm install -g n
sudo n latest
sudo n stable
sudo n lts

View node, js version:

node -v
npm -v

Download npm related plug-ins:
sudo npm install

② Download the plugin and unzip Elasticsearch-Head

sudo wget https://codeload.github.com/mobz/elasticsearch-head/zip/master
unzip master

③ modified configuration file
server listening address (directory elasticsearch-head-master / Gruntfile.js) , add highlights
Here Insert Picture Description
profile elasticsearch.yml elasticseach, add the following information:
Here Insert Picture Description
After starting elasticsearch service into elasticsearch-head- master folder execute the command sudo npm start before they start elasticsearch-head, entered in the browser address bar http: // localhost: 9100 you can see the following figure represents a successful installation.
Here Insert Picture Description

3.2.2 Kibana AnSo

① according to installation download the corresponding version of elasticsearch Kibana installation package, I am here to download the 7.1.1 version, and unzip

wget https://artifacts.elastic.co/downloads/kibana/kibana-7.1.1-linux-x86_64.tar.gz
sha1sum kibana-7.1.1-linux-x86_64.tar.gz
tar -xzf kibana-7.1.1-linux-x86_64.tar.gz
cd kibana-7.1.1-linux-x86_64/

② set the environment variable kibana
execute sudo gedit / etc / profile, add at the end of the file:

KIBANA_HOME=/home/pm/kibana-7.1.1-linux-x86_64
PATH=$KIBANA_HOME:$PATH
export KIBANA_HOME

③ run kibana.
./Bin/kibana
browser address bar enter http: // localhost: 5601 you can see the following figure represents a successful installation.
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/JiKaTogether/article/details/90736866