elastic 账户认证 401 问题?
1、elastic 访问9200 认证无法登陆,日志 出现 401 问题?
2、同样的 访问 kibana http://ip:5601 出现:Kibana server is not ready yet访问异常 ?
es 添加认证 9200 登陆异常,es 日志信息? [2020-05-22T17:13:30,401][INFO ][o.e.x.s.a.AuthenticationService] [10.10.28.92] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic] [2020-05-22T17:20:49,401][INFO ][o.e.x.s.a.AuthenticationService] [10.10.28.92] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
3、同时测试 kibana 5601 登陆?
访问 http://ip:5601 出现异常 Kibana server is not ready yet
4、本地 验证 elastic 账户
本地 验证 elastic 账户 curl -u elastic 'http://localhost:9200/_xpack/security/_authenticate?pretty'
5、检查 es 配置;
切换 elastic 主目录
vi config/elasticsearch.yml ### http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type # xpack.ml.enabled: false xpack.security.enabled: true xpack.security.transport.ssl.enabled: true ###
6、检查 kibana 配置;
切换 kibana 主目录
vi kibana/config/kibana.yml ### elasticsearch.username: "elastic" elasticsearch.password: "elastic" ###
elasticsearch 7.6.2 重置密码;
重置 elastic 账户密码
curl -u elastic -XPUT 'http://localhost:9200/_xpack/security/user/elastic/_password?pretty' -H 'Content-Type: application/json' -d' { "password" : "elastic" } '
7、如果 重置依然出现问题 ?
切换 es 主目录 执行 elasticsearch-setup-passwords 重置所有密码
./elasticsearch-setup-passwords interactive
分类:
ElasticSearch
, Kafka
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架