Elasticsearch6.0 and head plug-in installation

Source: Internet
Author: User
Tags install node

Http://www.cnblogs.com/Onlywjy/p/Elasticsearch.html

Elasticsearch6.0 and head plug-in installation

1. Download and unzip Elasticsearch

2. Modify the Elasticsearch.yml file

# Cluster Name  
cluster.name:my-application
# node name  
node.name:node-1   
# Data store directory (multiple paths separated by commas)  
Path.data:/ Home/wjy/es/data  
# Log directory  
path.logs:/home/wjy/es/logs  
#本机的ip地址
network.host:192.168.161.128  
#设置集群中master节点的初始列表, these nodes can be used to automatically discover the newly joined cluster node
discovery.zen.ping.unicast.hosts: ["192.168.161.128"]
# Set the TCP port (cluster) for interaction between nodes (default 9300)  
transport.tcp.port:9300  
# Listening port (default)  
http.port:9200  
# Add parameter, Enable head plug-ins to access es  
http.cors.enabled:true  
http.cors.allow-origin: "*"

3. Launch ES./elasticsearch

4. Download Head Plugin

wget  Https://github.com/mobz/elasticsearch-head/archive/master.zip

5. Install node

wget https://npm.taobao.org/mirrors/node/latest-v4.x/node-v4.4.7-linux-x64.tar.gz
TAR-ZXVF Node-v4.4.7-linux-x64.tar.gz

Configuration under Environment variables, edit/etc/profile add




Executive Source/etc/profile

6. Installing Grunt

Grunt is a node. JS-based project building tool that can be packaged for compression, testing, execution, and so on, and the head plugin is launched via grunt

Cd/opt/elasticsearch-head-master
npm install-g grunt-cli  //will generate Node_modules folder after execution

Check if the installation is successful

7. Modify the head plugin source code

Modify Server listener Address: gruntfile.js


Modify Connection Address: _site/app.js

7. Run Head

Under the Elasticsearch-head-master directory

NPM Install (installs the downloaded package)
Grunt Server

8. Visit http://xxx:9100

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.