gpt4 book ai didi

elasticsearch - 无法访问 Kibana 公网 IP 站点

转载 作者:行者123 更新时间:2023-12-03 00:04:17 29 4
gpt4 key购买 nike

无法从谷歌计算引擎获取 Kibana 的公共(public) IP。表示无法访问该站点,但如果我更改 elasticsearch.yml,则 Elasticsearch 通过公共(public) IP 工作来自 localhost0.0.0.0
关闭 nginx 只测试 Kibana。

运行于:Ubuntu 16.04、Elasticsearch 5.6.0、Kibana 5.6.0
port 5601 允许使用防火墙Kibana firewall screenshot
kibana.yml文件有以下内容:

server.port: 5601
server.host: "0.0.0.0"
elasticsearch.url: "http://localhost:9200"
elasticsearch.ssl.verificationMode: none

运行 netstat -natp | grep 5601 ,我得到:
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN -

并运行 sudo netstat -tupln返回:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1916/sshd
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 10615/node
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 1447/systemd-resolv
tcp6 0 0 127.0.0.1:9300 :::* LISTEN 8490/java
tcp6 0 0 :::22 :::* LISTEN 1916/sshd
tcp6 0 0 :::5355 :::* LISTEN 1447/systemd-resolv
tcp6 0 0 127.0.0.1:9200 :::* LISTEN 8490/java
udp 0 0 127.0.0.53:53 0.0.0.0:* 1447/systemd-resolv
udp 0 0 0.0.0.0:68 0.0.0.0:* 1156/dhclient
udp 0 0 10.128.0.100:123 0.0.0.0:* 1702/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 1702/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 1702/ntpd
udp 0 0 0.0.0.0:5355 0.0.0.0:* 1447/systemd-resolv
udp6 0 0 fe80::4001:aff:fe80:123 :::* 1702/ntpd
udp6 0 0 ::1:123 :::* 1702/ntpd
udp6 0 0 :::123 :::* 1702/ntpd
udp6 0 0 :::5355 :::* 1447/systemd-resolv
curl -i localhost:5601返回:
HTTP/1.1 200 OK
kbn-name: kibana
kbn-version: 5.6.0
cache-control: no-cache
content-type: text/html; charset=utf-8
content-length: 217
accept-ranges: bytes
Date: Mon, 11 Sep 2017 23:27:38 GMT
Connection: keep-alive
<script>var hashRoute = '/app/kibana';
var defaultRoute = '/app/kibana';
var hash = window.location.hash;
if (hash.length) {
window.location = hashRoute + hash;
} else {
window.location = defaultRoute;
sudo systemctl status kibana表示 kibana 服务处于事件状态并正在运行

似乎端口 5601 不适用于 Google Compute Engine 中的任何实例,任何想法都将不胜感激。

最佳答案

为端口 5601 制定新的单独防火墙规则解决了这个问题!感谢大家的意见和建议

关于elasticsearch - 无法访问 Kibana 公网 IP 站点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46165645/

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