1.响应 超过时间30000ms
(1) docker rm elasticsearch #从docker中删除es
docker rm kibana #从docker中删除kibana
(2)重新安装启动es加大最大运行内存 :1024M
docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" \
-e ES_JAVA_OPTS="-Xms128m -Xmx1024m" \
-v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \
-v /mydata/elasticsearch/data:/usr/share/elasticsearch/data \
-v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins \
-d elasticsearch:7.4.2
2.报错:{"type":"log","@timestamp":"2021-03-16T13:45:39Z","tags":["warning","savedobjects-service"],"pid":8,"message":"Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_1 and restarting Kibana."}
这就是资源已存在的原因了
解决办法: curl -X DELETE http://localhost:9200/.kibana* #删除已经存在的kibana资源