windows - 无法远程访问 Kibana

标签 windows elasticsearch centos kibana remote-access

我已经在同一个 Centos 服务器上安装了 Elasticsearch 和 kibana。当运行 netstat -nlp | grep :5601 我得到以下结果:

tcp        0      0 0.0.0.0:5601            0.0.0.0:*               LISTEN      27244/node 
但是我仍然无法从我的 Windows 客户端远程访问 kibana,当我尝试使用“http://my_server_ip:5601”在浏览器中从我的 Windows 客户端访问 kibana 时,我得到如下信息:
This page cannot be accessed
...(omitted)
ERR_CONNECTION_RESET
但是,我可以使用“http://my_server_ip:9200”从浏览器中的 Windows 客户端访问 ES:
{
  "name" : "VM-251-156-centos",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "FsL8YI1mQAGqx3R0kffxbw",
  "version" : {
    "number" : "7.10.2",
    "build_flavor" : "oss",
    "build_type" : "rpm",
    "build_hash" : "747e1cc71def077253878a59143c1f785afa92b9",
    "build_date" : "2021-01-13T00:42:12.435326Z",
    "build_snapshot" : false,
    "lucene_version" : "8.7.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}
我已经搜索了一整天,几乎所有的答案都建议编辑 kibana.yml,将 server.host 更改为 0.0.0.0,但在我的情况下它们不起作用。
我的 kibana.yml 是这样的(只列出未注释的行):
server.port: 5601 
server.host: "0.0.0.0" 
server.name: "http://kibana.example.com" 
elasticsearch.hosts: ["http://my_server_ip:9200"]
我已经使用命令“firewall-cmd --state”检查了 Centos 服务器中的防火墙:
not running
而且我还使用“sudo systemctl status kibana”确认了 kibana 确实在 Centos 服务器中运行:
● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2022-01-26 13:57:44 CST; 19h ago
 Main PID: 27244 (node)
    Tasks: 11
   Memory: 80.6M
   CGroup: /system.slice/kibana.service
           └─27244 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli/dist
任何建议表示赞赏。

最佳答案

通过将 kibana.yml 中的“server.port:5601”更改为“server.port:5602”解决。
原来问题是由于centos服务器中的5601端口被服务器提供商出于安全考虑而屏蔽了。

关于windows - 无法远程访问 Kibana,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70872144/

相关文章:

centos - getent passwd 在 centos 7 上的 openldap 服务器上不返回任何内容(最低)

ruby-on-rails - 使用前端服务器和不同机器上的音频文件在 LAN 上运行 Ruby on rails 应用程序的流式音频?

apache - 403 Forbidden - 无法解决,搜索高低

c - 绘画代码在我的 WM_COMMAND 消息处理程序中无法正常工作

c# - 通过 SID 解析显示用户名的最佳方法?

elasticsearch - Elasticsearch 使用范围聚合,基于术语聚合结果

database - Elasticsearch : Parent child vs Nested Document

ruby-on-rails - Rails、Tire 和 CircleCI:在创建 Tire-Searchable 对象时运行 rspec 测试时出现 Errno::ECONNREFUSED 错误

c++ - 检查文件是由进程创建的还是用户使用 C++ 创建的

node.js - NodeJS Express Windows 最大连接数设置