elasticsearch-head插件安装说明

下载及安装readmenode

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

 

安装:github

npm installnpm

npm run startvim

访问:http://localhost:9100/跨域

 

安装报错:app

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

执行:npm config set strict-ssl false运维

解决跨域问题:elasticsearch

修改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
相关文章
相关标签/搜索