This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13434|Reply: 1

Install the elasticsearch-6.5.2 elasticsearch-head plugin

[Copy link]
Posted on 12/12/2018 4:55:17 PM | | | |
elasticsearch-head is a web frontend for browsing and interacting with elastic search clusters.

elasticsearch-head is hosted and can be downloaded or forked on GitHub

GitHub address:https://github.com/mobz/elasticsearch-head

Preparation

Install git and nodejs
CentOS 7 Installation NodeJS Tutorial
https://www.itsvse.com/thread-5912-1-1.html
(Source: Architect_Programmer)

Installation and operation

Runs as a standalone webapp



When using npm to install the package, remember to add sudo (executed with root administrator privileges), otherwise an error may be reported. The results of the run are as follows:



We visit: http://ip:9100/ to see the web management interface, enter the API interface address of elasticsearch, and click Connect as follows:



Open the console console and get the following error:

Failed to load http://itsvse:9200/: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://itsvse:9100' is therefore not allowed access.
The error is due to the fact that Elasticsearch's API does not allow cross-domain requests. Kill the elasticsearch process first:

[es@VM_0_9_centos elasticsearch-6.5.2]$ jps
22257 Elasticsearch
23143 Jps
[es@VM_0_9_centos elasticsearch-6.5.2]$ kill -9 22257
[es@VM_0_9_centos elasticsearch-6.5.2]$ jps
23191 Jps
[es@VM_0_9_centos elasticsearch-6.5.2]$

Edit the elasticsearch configuration file

At the bottom, add a configuration that allows cross-domain:



Save the configuration file, and start elasticsearch, we try it with "elasticsearch-head" connection, and it succeeds, as follows:







Previous:C# on DevCloud
Next:Tutorial on installing elasticsearch-analysis-ik in elasticsearch-6.5.2
 Landlord| Posted on 11/7/2021 8:37:15 PM |
docker way, the command is as follows:

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com