Elasticsearch-Head

2018-09-12  本文已影响0人  恶魔幻心

1、 https://github.com/mobz/elasticsearch-head下载ZIP包。

解压后访问index.html即可

2、Running with built in server

git clone git://github.com/mobz/elasticsearch-head.git

cd elasticsearch-head

npm install

npm run start

open http://localhost:9100/

关于elasticsearch跨域访问设置

在config/elasticsearch.yml     后面增加以下参数:

#开启跨域访问支持,默认为false

http.cors.enabled: true

#跨域访问允许的域名地址,

(允许所有域名)以上使用正则

http.cors.allow-origin: /.*/

上一篇 下一篇

猜你喜欢

热点阅读