elasticsearch启动命令:
brew services restart elasticsearch
brew info elasticsearch
elasticsearch-head 解决跨域 && auth 问题配置文件:
xpack.security.enabled: false
http.cors.enabled: true
http.cors.allow-origin: "/.*/"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With,X-Auth-Token,Content-Type, Content-Length, Authorization"
elasticsearch-head / sudo vi Gruntfile.js
connect: {
server: {
options: {
port: 9100,
hostname:'*',
base: '.',
keepalive: true
}
}
}