初步搭建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: "*"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值