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

qnzebej0  于 2022-12-09  发布在  Kibana
关注(0)|答案(5)|浏览(846)

我正在尝试安装kibana 4.0.0 for windows。我已经解压缩了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
mjqavswn

mjqavswn1#

首先确保您使用的是elasticsearch 1.5,并确保您已经通过将浏览器指向
http://localhost:9200
即使它不工作,然后编辑您的elasticsearch.yml文件,并在文件末尾添加以下两行:

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

现在重新启动你的ElasticSearch,然后访问kibana。

3pmvbmvn

3pmvbmvn2#

您是否安装了ElasticSearch1.4.4版本?Kibana依赖于ElasticSearch示例。
在kibana.yml文件中,有一个ElasticSearch(ES)示例的配置。elasticsearch_url:“http://localhost:9200
如果您是在本地计算机上安装ES示例,则不需要干扰上述配置。如果您是在其他计算机上安装ES,请提供正确的ES URL。9200是运行ES的端口。
另外,ES可能需要java 7或更高版本。

sczxawaw

sczxawaw3#

如果您有任何代理服务器设置,Kibana可能无法连接。
尝试
导出no_proxy=“本地主机”
导出NO_PROXY=“本地主机”
作为环境变量

0dxa2lsx

0dxa2lsx4#

将localhost替换为计算机的IP
示例:您的机器_IP:5601
对我很有效!

vlurs2pr

vlurs2pr5#

请尝试通过命令行运行.bat文件而不是双击它。

相关问题