首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >设置elasticsearch 7.x用户名和密码

设置elasticsearch 7.x用户名和密码

作者头像
程裕强
发布2019-11-12 17:28:34
发布2019-11-12 17:28:34
15.7K0
举报

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://blog.csdn.net/chengyuqiang/article/details/102935955

1、修改elasticsearch.yml

elasticsearch.yml

代码语言:javascript
复制
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true

2、修改password

代码语言:javascript
复制
D:\app\elasticsearch-7.4.2\bin>elasticsearch-setup-passwords interactive
Initiating the setup of passwords for reserved users elastic,apm_system,kibana,logstash_system,beats_system,remote_monitoring_user.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y

Enter password for [elastic]:
Reenter password for [elastic]:
Enter password for [apm_system]:
Reenter password for [apm_system]:
Enter password for [kibana]:
Reenter password for [kibana]:
Enter password for [logstash_system]:
Reenter password for [logstash_system]:
Enter password for [beats_system]:
Reenter password for [beats_system]:
Enter password for [remote_monitoring_user]:
Reenter password for [remote_monitoring_user]:
Changed password for user [apm_system]
Changed password for user [kibana]
Changed password for user [logstash_system]
Changed password for user [beats_system]
Changed password for user [remote_monitoring_user]
Changed password for user [elastic]

D:\app\elasticsearch-7.4.2\bin>

3、访问elasticsearch

4、Kibana

config\kibana.yml

代码语言:javascript
复制
elasticsearch.username: "kibana"
elasticsearch.password: "123456"

http://localhost:5601

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019/11/06 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1、修改elasticsearch.yml
  • 2、修改password
  • 3、访问elasticsearch
  • 4、Kibana
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档