下载: 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



