gpt4 book ai didi

kibana - Kibana无法在http ://localhost:5601 URL工作

转载 作者:行者123 更新时间:2023-12-04 13:49:30 24 4
gpt4 key购买 nike

我正在尝试为Windows安装kibana 4.0.0。我已经解压缩了zip文件,并按照文档中显示的说明进行了操作。运行.bat文件后,我尝试访问http://localhost:5601,但未加载任何内容。如何解决这个问题呢?
这是我的kibana.yml文件内容

 # Kibana is served by a back end server. This controls which port to use.
port: 5601

# The host to bind the server to.
host: "0.0.0.0"

# The Elasticsearch instance to use for all your queries.
elasticsearch_url: "http://localhost:9200"

# preserve_elasticsearch_host true will send the hostname specified in `elasticsearch`. If you set it to false,
# then the host you use to connect to *this* Kibana instance will be sent.
elasticsearch_preserve_host: true

# Kibana uses an index in Elasticsearch to store saved searches, visualizations
# and dashboards. It will create a new index if it doesn't already exist.
kibana_index: ".kibana"

# If your Elasticsearch is protected with basic auth, this is the user credentials
# used by the Kibana server to perform maintence on the kibana_index at statup. Your Kibana
# users will still need to authenticate with Elasticsearch (which is proxied thorugh
# the Kibana server)
# kibana_elasticsearch_username: user
# kibana_elasticsearch_password: pass


# The default application to load.
default_app_id: "discover"

# Time in milliseconds to wait for responses from the back end or elasticsearch.
# This must be > 0
request_timeout: 300000

# Time in milliseconds for Elasticsearch to wait for responses from shards.
# Set to 0 to disable.
shard_timeout: 0

# Set to false to have a complete disregard for the validity of the SSL
# certificate.
verify_ssl: true

# If you need to provide a CA certificate for your Elasticsarech instance, put
# the path of the pem file here.
# ca: /path/to/your/CA.pem

# SSL for outgoing requests from the Kibana Server (PEM formatted)
# ssl_key_file: /path/to/your/server.key
# ssl_cert_file: /path/to/your/server.crt

# Set the path to where you would like the process id file to be created.
# pid_file: /var/run/kibana.pid


# Plugins that are included in the build, and no longer found in the plugins/ folder
bundled_plugin_ids:
- plugins/dashboard/index
- plugins/discover/index
- plugins/doc/index
- plugins/kibana/index
- plugins/markdown_vis/index
- plugins/metric_vis/index
- plugins/settings/index
- plugins/table_vis/index
- plugins/vis_types/index
- plugins/visualize/index

最佳答案

首先,请确保您使用的是Elasticsearch 1.5,并通过将浏览器指向来确保已启动了它。
http://localhost:9200
即使无法正常工作,也请编辑您的elasticsearch.yml文件,并在文件末尾添加以下两行:

http.cors.enabled: true
http.cors.allow-origin: http://localhost:5601

现在重新启动elasticsearch,然后访问kibana。

关于kibana - Kibana无法在http ://localhost:5601 URL工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28678058/

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