地址:https://github.com/mobz/elasticsearch-head git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch-head 修改 elasticsearch-head-master\Gruntfile.js 在server里面加上 hostname: '*' 在 proxy里面的index 修改 localhost npm install npm run start 后台运行 npm run start & 在elasticsearch中启用CORS 如果不作为elasticsearch的插件运行(甚至不能从版本5运行),则必须在elasticsearch中启用CORS,否则您的浏览器将拒绝看似不安全的请求。 在elasticsearch配置中; 加 http.cors.enabled: true http.cors.allow-origin: "*" 您还必须设置,http.cors.allow-origin因为默认情况下不允许原点。http.cors.allow-origin: "*"是有效值,但它被视为安全风险,因为您的群集可以从任何地方开放交叉。 语言修改 在这个位置elasticsearch-head/_site/lang 替换 en_string.js 成想要的语言