初步搭建ElasticSearch环境
1.再ElasticSearch官网下载对应压缩包https://www.elastic.co/cn/
2.解压后点击elasticsearch.bat 启动
3.http://localhost:9200/ 打开此链接可以看到我们已启动ElasticSearch
4.ElasticSearch操作起来不方便,我们要使用Head 插件
5.https://github.com/mobz/elasticsearch-head 下载压缩包
6.head插件需要node.js 的支持
7.打开node.js 执行以下两条命令
npm install -g grunt-cli
npm install
再Head插件目录打开shell 输入命令grunt server
8.http://127.0.0.1:9100/ 打开插件链接,单无法连接,因为有跨域问题
9.解决跨域问题
打开elasticSearch elasticsearch.yml文件 修改配置文件
http.cors.enabled: true
http.cors.allow-origin: "*"