Preface introduces

Install the Elasticsearch head plugin for easy operation of Elasticsearch

Elasticsearch-head is a client plug-in used to monitor elasticSearch status, including visualization of data, adding, deleting, modifying, and querying data. Install the ElasticSearch-head plugin on Linux and Windows. Make sure you already have nodeJS installed.

Installation environment

  1. Install Node.js and configure the environment variable PATH{PATH :D: Program Files\nodejs}
  • Nodejs download
  • Install and configure the environment variable {path:D: Program Files\nodejs}
  • View the NodeJS version. node -v
  1. Install the elasticsearch – head
  • Download the elasticsearch – head
  • Place elasticSearch -head in the same folder as ElasticSearch
  • Modify the elasticsearch – head/Gruntfile. Js
connect: {
	server: {
		options: {
			port: 9100,
			base: '.',
			keepalive: true
		}
	}
}
Copy the code
  • Modify the elasticsearch – 6.2.2 / config/elasticsearch. Yml * add configuration information
http.cors.enabled: true
http.cors.allow-origin: "*"
Copy the code

Elasticsearch -head

Microsoft Windows [Version6.1.7601] Copyright (c) all Rights Reserved2009Microsoft Corporation. All rights reserved. C: \ Users \ user > node - v v10.16.0 C: \ Users \ user > D: D:\>cd D:\Program Files\elasticsearch\head D:\Program Files\elasticsearch\head>npm run start > elasticsearch-head@0.0.0 start D:\Program Files\elasticsearch\head
> grunt server

Running "connect:server" (connect) task
Waiting forever...
Started connect web server on http://localhost:9100

Copy the code

The results