kibana Unable to revive connection: http://elasticsearch:9200

用docker启动kibana,
启动完成后,过了很久, 浏览器输入http://192.168.56.10:5601/ , 还是不能访问kibana

用docker logs 查看日志信息,发现报错
"Unable to revive connection: http://elasticsearch:9200/"}

应该是容器启动的时候, es主机的没有设置正确, 后来才发现是因为ELASTICSEARCH_HOSTS 末尾的少打了.

解决办法: 进入kibana的容器修改es的节点信息.
进入容器
docker exec -it d1d /bin/bash
d1d为容器的id
kibana Unable to revive connection: http://elasticsearch:9200

进入如下的路径, 修改配置文件vi kibana.yml
kibana Unable to revive connection: http://elasticsearch:9200

修改elasticsearch.hosts的地址, 改成es的ip
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://192.168.56.10:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: true

修改完成配置文件后, 重启docker的kibana服务
kibana Unable to revive connection: http://elasticsearch:9200
浏览器中输入
http://192.168.56.10:5601/
即可访问kibana
kibana Unable to revive connection: http://elasticsearch:9200

kibana Unable to revive connection: http://elasticsearch:9200

上一篇:一个资深iOS开发者对于React Native的看法


下一篇:CssSelector定位详解