elasticsearch连接不到head插件解决方案

(1)elasticsearch-5x下的 config/elasticsearch.yml

  1.  
    http.cors.enabled: true
  2.  
    http.cors.allow-origin: "*"
(2)elasticsearch-head下Gruntfile.js
  1.  
    connect: {
  2.  
    server: {
  3.  
    options: {
  4.  
    hostname: '0.0.0.0',
  5.  
    port: 9100,
  6.  
    base: '.',
  7.  
    keepalive: true
  8.  
    }
  9.  
    }
  10.  
    }
(3)浏览器问题:chrom不能连,换ie试试

原文:https://blog.csdn.net/ymd8005/article/details/70676798

你可能感兴趣的:(elasticsearch连接不到head插件解决方案)