我无法通过网络用户界面到达基巴纳。我在防火墙-cmd中设置了必要的端口,我已经配置了kibana.yml和elasticsearch.yml。我没有看到任何相关的错误,或者至少不知道它们是否存在。它只是显示“站点无法到达”的适当端口。
稍后,我希望将kibana放在子域kibana.domain.com上,但首先要确认它在没有子域的情况下工作。
我可以确认我的域名和nginx正在工作。
当前版本: OS - Centos 8 Elasticsearch - 7.10.2 Kibana -我不知道如何通过终端获得版本(据我所知,没有版本冲突,所以这不重要。是7.x)
据我所见,只有一个在5601上运行的基巴纳实例。
netstat -tulpn | grep LISTEN
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 290961/node
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 290425/nginx: maste
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4738/sshd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 290425/nginx: maste
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::80 :::* LISTEN 290425/nginx: maste
tcp6 0 0 127.0.0.1:9200 :::* LISTEN 287716/java
tcp6 0 0 127.0.0.1:9300 :::* LISTEN 287716/java
tcp6 0 0 :::22 :::* LISTEN 4738/sshd
tcp6 0 0 :::443 :::* LISTEN 290425/nginx: maste
kibana.yml
server.port: 5601
server.host: "127.0.0.1"
elasticsearch.hosts: ["http://127.0.0.1:9200"]
elasticsearch.yml
cluster.name: portfolio_es_cluster
node.name: portfolio_es_node
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 127.0.0.1
http.port: 9200
基班纳本地工厂卷曲
curl -XGET http://localhost:5601/status -I
HTTP/1.1 200 OK
content-security-policy: script-src 'unsafe-eval' 'self'; worker-src blob: 'self'; style-src 'unsafe-inline' 'self'
kbn-name: mykibananame
kbn-license-sig: d9d95bb2e2230b29804216ff76
content-type: text/html; charset=utf-8
cache-control: private, no-cache, no-store, must-revalidate
content-length: 121035
vary: accept-encoding
accept-ranges: bytes
Date: Mon, 18 Jan 2021 06:53:36 GMT
Connection: keep-alive
firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0 eth1
sources:
services: cockpit dhcpv6-client http https ssh
ports: 5601/tcp 9200/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
发布于 2021-01-18 08:05:43
在@case 9517的帮助下,我询问是否知道localhost和127.0.0.1 (本例中外部连接的上下文相同),我能够用服务器的IP更新kibana.yml文件
server.port: 5601
server.host: "serversIP"
elasticsearch.hosts: ["http://localhost:9200"] #this can remain as localhost if both Elasticsearch and Kibana are running on the same server.
这回答了我一定要跟进的一个问题,为什么我的proxy_pass到kibana不能为子域工作,比如我的nginx系统中的kibana.domain.com。代理通行证不能是proxy_pass localhost:5601
,而是proxy_pass serversIP:5601
。
再次感谢user9517。
https://serverfault.com/questions/1050211
复制相似问题