我正在尝试为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
答案 0 :(得分:8)
首先确保您使用的是elasticsearch 1.5,并确保通过将浏览器指向
来启动它 http://localhost:9200
尽管它不起作用,但是编辑你的elasticsearch.yml文件并在文件末尾添加这两行:
http.cors.enabled: true
http.cors.allow-origin: http://localhost:5601
现在重新启动弹性搜索,然后访问kibana。
答案 1 :(得分:3)
您是否安装了Elastic Search 1.4.4版本? Kibana依赖于Elastic Search实例。
在kibana.yml文件中,有一个Elastic Search(ES)实例的配置。 elasticsearch_url:“http://localhost:9200”
如果要在本地计算机上安装ES实例,则无需干扰上述配置。如果要在其他计算机上安装ES,请提供正确的ES URL。 9200是ES运行的端口。
P.S。 ES可能需要java 7或更高版本。
答案 2 :(得分:0)
如果您有任何代理设置,Kibana可能无法连接。
试
export no_proxy =" localhost"
导出NO_PROXY =" localhost"
作为您的环境变量
答案 3 :(得分:-1)
尝试通过命令行运行.bat文件,而不是双击它。