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