设置es服务端支持跨域
在elasticsearch.yml文件里新增如下内容,这样head插件就可以访问es了
http.cors.enabled: true
http.cors.allow-origin: "*"
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
root用户编辑 /etc/security/limits.conf 文件,新增如下
es soft nofile 65535
es hard nofile 65537
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
# 在root用户下追加配置
vim /etc/sysctl.conf
# 配置内容
vm.max_map_count=262144
# 执行 /sbin/sysctl -p 使配置立即生效
/sbin/sysctl -p
over~