elasticsearch-head插件安装说明

下载及安装readme

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

安装:

npm install

npm run start

访问:http://localhost:9100/

安装报错:

npm ERR! Error: CERT_NOT_YET_VALID npm ERR! at SecurePair.<anonymous> (tls.js:1370:32)

执行:npm config set strict-ssl false

解决跨域问题:

修改vim /apps/svr/elasticsearch-6.0.1/config/elasticsearch.yml 添加以下两句:

http.cors.enabled: true

http.cors.allow-origin: "*"

运维API:
1. 集群状态:http://host:9200/_cluster/health?pretty
2. 节点状态:http://host:9200/_nodes/process?pretty
3. 分片状态:http://host:9200/_cat/shards
4. 索引分片存储信息:http://host:9200/index/_shard_stores?pretty
5. 索引状态:http://host:9200/index/_stats?pretty
6. 索引元数据:http://host:9200/index?pretty
原文地址:https://www.cnblogs.com/ThinkVenus/p/9679046.html