Elastic Search 下载和安装
1.进入ES官网:https://www.elastic.co/
2.点击【即刻体验】
3.点击Elasticsearch【下载】
4.选择对应的服务器版本
5.开始下载了
6.解压即可
启动ElasticSearch,bin目录下的elasticsearch.bat启动。
在浏览器访问测试:
7.安装可视化工具(elasticsearch-head)
①下载地址:https://github.com/mobz/elasticsearch-head
②解压即可
配置安装,在这之前电脑环境要有nodejs,没有的下载安装对应版本即可(下载地址:http://nodejs.cn/download/)
③进入目录
cd elasticsearch-head
④安装依赖
npm install
⑤启动运行
npm run start
⑥查看
这个时候是访问不了es的,因为存在跨域问题。
⑦解决跨域问题
跨域问题:9100访问不了9200
找到es中config中的elasticsearch.yml文件
添加一个配置
http.cors.enabled: true
http.cors.allow-origin: "*"
启动es服务和esh
参考:https://www.cnblogs.com/coderxz/p/13268417.html#1elasticsearch%E7%AE%80%E4%BB%8B