【问题标题】:Kibana Not working at http://localhost:5601 URLKibana 无法在 http://localhost:5601 URL 上工作
【发布时间】:2015-04-25 00:41:44
【问题描述】:

我正在尝试为 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 正在运行吗?

标签: kibana


【解决方案1】:

首先确保您使用的是 elasticsearch 1.5,并确保您已通过将浏览器指向来启动它

http://localhost:9200

即使它不起作用,也请编辑您的 elasticsearch.yml 文件并在文件末尾添加这两行:

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

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

【讨论】:

    【解决方案2】:

    您是否安装了 Elastic Search 1.4.4 版本? Kibana 依赖于 Elastic Search 实例。

    在您的 kibana.yml 文件中,有一个 Elastic Search (ES) 实例的配置。 elasticsearch_url: "http://localhost:9200"

    如果您在本地机器上安装 ES 实例,则无需干扰上述配置。如果您在其他机器上安装 ES,请提供正确的 ES URL。 9200是ES运行的端口。

    附言ES 可能需要 java 7 或更高版本。

    【讨论】:

      【解决方案3】:

      如果您有任何代理设置,Kibana 可能无法连接。

      试试

      export no_proxy="localhost"

      导出 NO_PROXY="localhost"

      作为你的环境变量

      【讨论】:

        【解决方案4】:

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

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2013-12-31
          • 2015-09-08
          • 2016-03-24
          • 2011-02-20
          • 2022-01-15
          • 2021-03-25
          • 1970-01-01
          相关资源
          最近更新 更多