npm run start
docker部署
version: '3'
services:
eshead:
image: mobz/elasticsearch-head:5
container_name: eshead
restart: always
ports:
- 9100:9100
docker pull mobz/elasticsearch-head:5
docker run -d --name eshead -p 9100:9100 --restart always mobz/elasticsearch-head:5
es-head连接不上es
在elasticsearch的elasticsearch.yml文件里面添加
docker容器
cd /usr/share/elasticsearch/config
vi elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"
es-head报错406
ElasticSearch-head 操作时,报 406错误码_缘自天方的博客-CSDN博客
1、进入head安装目录;docker exec -it 名称 bash
2、打开文件夹_site,cd _site/
3、编辑vendor.js 共有两处
①. 6886行 contentType: "application/x-www-form-urlencoded
改成
contentType: "application/json;charset=UTF-8"
②. 7574行 var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
改成
var inspectData = s.contentType === "application/json;charset=UTF-8" &&
es-head 对es增删改查
ElasticSearch-Head操作Elasticsearch进行增加、更新、查询、删除数据_jin—zzc的博客-CSDN博客_es head添加数据
es-head清空索引
符合查询
http://172.20.10.10:9200/
liaoba_post/_doc/_delete_by_query
post
{"query":{"match_all":{}}}