elasticsearch6.6.0设置访问密码

elasticsearch6.6.0设置访问密码

  • [第一步 x-pack-core-6.6.0.jar](#第一步 x-pack-core-6.6.0.jar)
  • [第二步 elasticsearch.yml](#第二步 elasticsearch.yml)
  • [第三步 设置密码](#第三步 设置密码)

第一步 x-pack-core-6.6.0.jar

首先破解 x-pack-core-6.6.0.jar 破解的方式大家可以参考 https://codeantenna.com/a/YDks83ZHjd 中<5.破解x-pack> 这部分 , 也可以直接下载我编译好的
https://download.csdn.net/download/iBuDongIt/88748782

下载后解压替换 elasticsearch-6.6.0/modules/x-pack-core/x-pack-core-6.6.0.jar即可
注意 : 先切换到 elasticsearch 所属的用户组

bash 复制代码
su es

第二步 elasticsearch.yml

设置elasticsearch.yml

bash 复制代码
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true

第三步 设置密码

重启elasticsearch.yml

bash 复制代码
kill -9 29180 杀死es进程
./bin/elasticsearch -d 重新启动

设置密码的安全指令

bash 复制代码
./bin/elasticsearch-setup-passwords interactive

执行过程:

bash 复制代码
[es@robot elasticsearch-6.6.0]$ ./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]

至此 es已经设置好密码了 可以在浏览器上输入 ip:9200 验证下 账户名: elastic 密码为 第一个设置的密码

相关推荐
Sayai13 小时前
Elasticsearch 日志索引设计:按小时切分 + 小时内 Rollover 兜底(ILM 实战,附完整脚本)
大数据·elasticsearch·搜索引擎
Elasticsearch13 小时前
生产环境向量搜索的一个设置:vectordb_document 模式如何自动调优 Elasticsearch
elasticsearch
【赫兹威客】浩哥14 小时前
基于SpringBoot+Vue3的舆情文本分析系统|Elasticsearch检索+情感分析+话题热度追踪 毕设项目
spring boot·elasticsearch·课程设计
玉&心15 小时前
在grafana中加入elasticsearch的日志dashboard
elasticsearch·grafana
Elasticsearch16 小时前
让大模型思考,让小模型执行:在 Elastic Workflows 中拆分 LLM 成本
elasticsearch
Elastic 中国社区官方博客1 天前
ES95:面向 Elasticsearch 时间序列指标的自适应压缩
大数据·运维·elasticsearch·搜索引擎·架构·全文检索
编程令我快乐1 天前
模型配置及使用ccSwich管理
大数据·elasticsearch·搜索引擎
可遇_不可求1 天前
合集:LangChain智能体开发(四)langchain-elasticsearch
elasticsearch·langchain
Elasticsearch2 天前
悦高软件带你体验 ES9.5 的性能跃升之路
elasticsearch
Elastic 中国社区官方博客2 天前
跳过 mapping 爆炸:ES|QL 无需动态 mapping 即可查询无 schema JSON key
大数据·人工智能·sql·elasticsearch·搜索引擎·json·全文检索