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

1、修改elasticsearch.yml

elasticsearch.yml

复制代码
1
2
3
4
5
6
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

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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

复制代码
1
2
3
elasticsearch.username: "elastic" elasticsearch.password: "123456"

http://localhost:5601

在这里插入图片描述

最后

以上就是呆萌短靴最近收集整理的关于设置elasticsearch 7.x用户名和密码的全部内容,更多相关设置elasticsearch内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部