安装elasticsearch

1.下载(必须安装jdk)

 http://www.elastic.co/downloads/elasticsearch

下载rpm

 

 2.安装

 

 

 3.启动

 

启动 service elasticsearch start

重启 service elasticsearch restart

 

 4.访问

 

 

 5.ps and whereis

 

 

6.es使用外网

找到配置文件

 

修改

 

 重启

service elasticsearch restart

 

成功

 

 

7.安装

https://github.com/mobz/elasticsearch-head

 

 

 

 打开 index.html

 

 连接成功

添加索引如此,查不出,跨域问题

在  elasticsearch.yml 添加

http. cors. enabled: true
http. cors. allow-origin: " *"

有了

 

posted @ 2018-05-09 22:33  crazyYong  阅读(197)  评论(0编辑  收藏  举报