zl程序教程

您现在的位置是:首页 >  工具

当前栏目

ElasticSearch插件es-head安装及使用:es集群设置了密码时的访问方法

2023-09-14 09:02:00 时间

安装

下载:
https://github.com/mobz/elasticsearch-head

配置es:
# vim $ES_HOME/config/elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"

启动:
npm run start & # 后台运行

密码认证

http.cors.enabled: true
http.cors.allow-origin: "*"
#http.cors.allow-headers: Authorization  #这个配置改为下面的
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true

web页面登录,浏览器访问:

http://xxx:9100/?auth_user=elastic&auth_password=JCK3BPr2g25G

参考链接:
https://blog.csdn.net/chj_1224365967/article/details/120237793
https://www.cnblogs.com/gered/p/14503878.html