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
3. Install the plug-Head
The downloaded the plug head of tar.gz
the compressed file to upload linux
and 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. Linux
installed nodejs
In linux
type the following command to install nodejs environment, respectively.
yum install nodejs
yum install npm
npm install -g grunt
npm install -g grunt-cli
2. Generate node_modules
file
In the elasticsearch-head
case file, enter the npm install -g cnpm --registry=https://registry.npm.taobao.org
command: .
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).
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.
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.