我是靠谱客的博主 呆萌短靴,最近开发中收集的这篇文章主要介绍设置elasticsearch 7.x用户名和密码,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1、修改elasticsearch.yml

elasticsearch.yml

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

D:appelasticsearch-7.4.2bin>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:appelasticsearch-7.4.2bin>

在这里插入图片描述

3、访问elasticsearch

在这里插入图片描述
在这里插入图片描述

4、Kibana

configkibana.yml

elasticsearch.username: "elastic"
elasticsearch.password: "123456"

http://localhost:5601

在这里插入图片描述

最后

以上就是呆萌短靴为你收集整理的设置elasticsearch 7.x用户名和密码的全部内容,希望文章能够帮你解决设置elasticsearch 7.x用户名和密码所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部