gpt4 book ai didi

elasticsearch - 服务器上的 Kibana 部署问题。 . .客户端无法访问 GUI

转载 作者:行者123 更新时间:2023-11-29 02:51:48 24 4
gpt4 key购买 nike

我在 100.100.0.158 VM 上配置了 Logstash + ES + kibana,Kibana 在 apache 服务器下运行。 8080端口

现在我需要的是。 .我只需将 URL“100.100.0.158:8080/kibana”提供给客户,这样客户就可以在网络上看到他的数据。

当我将此 URL 放在客户端浏览器上时,出现此错误“无法通过 http://"127.0.0.1":9200 联系 elasticsearch,请确保可以从您的系统访问 elasticsearch"

我需要用 IP 100.100.0.158:9200 或 127.0.0.1:9200 配置 ES 吗? . !

帮助。 . !

谢谢图沙尔

最佳答案

如果您的 Kibana 和 ES 安装在同一个盒子上,您可以通过在 Kibana 的 config.js 文件中使用以下行让它自动检测 ES URL/IP:

/** @scratch /configuration/config.js/5
* ==== elasticsearch
*
* The URL to your elasticsearch server. You almost certainly don't
* want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
* the same host. By default this will attempt to reach ES at the same host you have
* elasticsearch installed on. You probably want to set it to the FQDN of your
* elasticsearch host
*/
elasticsearch: "http://"+window.location.hostname+":9200",

这是因为 Kibana 和 ES 之间的接口(interface)是通过 JavaScript,所以使用 127.0.0.1localhost 实际上指向客户端机器(浏览器正在运行on) 而不是服务器。

关于elasticsearch - 服务器上的 Kibana 部署问题。 . .客户端无法访问 GUI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20738076/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com