ElasticSearch (5) --- Head Plug

Here Insert Picture Description

Previous: elasticsearch (4) -Bulk bulk operations

1. Plugin description

  ES service itself is relatively small, its powerful features is reflected in management has extensive plug-in for ES, perfect performance.

Plug Brief introduction
Head For use visual manner to operate a cluster ES
Kibana For reading ES cluster index database type of information and the use of visual way to be presented (bar charts, pie charts, line charts, dashboards, etc.)

2. Download the plug-Head

Head plug-Download
Here Insert Picture Description

3. Install the plug-Head

The downloaded the plug head of tar.gzthe compressed file to upload linuxand use the command tar -zxvf elasticsearch-head.tar.gz -C /usr/local/command unzip the file to the /usr/local/directory.

4. Installation Environment nodejs

1. Linuxinstalled nodejs

  In linuxtype the following command to install nodejs environment, respectively.

yum install nodejs
yum install npm
npm install -g grunt
npm install -g grunt-cli

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

2. Generate node_modulesfile

In the elasticsearch-headcase file, enter the npm install -g cnpm --registry=https://registry.npm.taobao.orgcommand: .
Here Insert Picture Description
Here Insert Picture Description

3. Edit the file Gruntfile.js
addedhostname: ‘*’allowing all IP access (note that there is a space, followed by a comma value between key value).
Here Insert Picture Description
4. Startgrunt server

Enter the following command to start grunt server.

nohup grunt server > /dev/null 2>&1 &

5. Accesshttp://<ip>:<port>
Note: just enter the page when the following address box is displayedhttp://localhost:9200, IP addresses here can be adjusted according to their actual deployment. Then click "Connect" behind.
Here Insert Picture Description

5. Head Plug

If you can properly connect ES service, and the display screen as shown in the figure indicates Head plugin installation is successful, we can view information about the index and the index of the library on this page.
Here Insert Picture Description

Next: elasticsearch (6) -Kibana plug
Published 101 original articles · won praise 50 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_43655835/article/details/104674003