首页 > 解决方案 > 从开发环境打开kibana主页失败

问题描述

我通过跟进 wiki 来设置 kibana 本地开发

https://github.com/elastic/kibana/blob/7.1/CONTRIBUTING.md#setting-up-your-development-environment

yarn es snapshot

我可以使用上面的 cli在http://localhost:9200/本地运行 elastichsearch。

yarn start

我可以使用上面的 cli 启动 kibana 的服务器,根据日志,它促使我打开http://localhost:5601/ykl

server    log   [15:57:39.991] [info][listening] Server running at http://localhost:5603/ykl
server    log   [15:57:40.150] [info][status][plugin:spaces@8.0.0] Status changed from yellow to green - Ready

在我使用默认用户/密码登录后,它返回一个错误响应。

{"statusCode":403,"error":"Forbidden","message":"Forbidden"}

我无法访问页面 http://localhost:5601/ykl/app/kibana#/management,它会将我重定向到http://localhost:5601/ykl/#/management错误响应就像上面的错误json 响应。

我的问题是访问主页的默认用户帐户有什么问题?如何更改 kibana 配置以允许我访问主页。

ps:我可以毫无问题地打开状态页面http://localhost:5601/ykl/status#?_g=()

标签: kibanadevelopment-environment

解决方案


我自己找到了答案。只需使用另一个具有权限的默认用户帐户,实际上,我使用它登录elastic并且它可以工作

https://www.elastic.co/guide/en/elastic-stack-overview/7.1/built-in-users.html


推荐阅读