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
相關文章
相關標籤/搜索