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