Elasticsearch配置
安装
- Java环境
- Git 下载 elasticsearch-rtf 压缩包,解压 进入bin 运行 elasticsearch.bat
- Git clone elasticsearch-head 进入,npm install,npm run start
- 配置elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, PUT, DELETE
http.cors.allow-headers: "X-Requested_With, Content-Type, Content_Length, X-User"
- 安装 kibana ,版本与 elasticsearch相对应
elasticsearch概念
- 集群
- 节点
- 分片
- 副本
Elasticsearch | Mysql |
---|---|
index | 数据库 |
type | 表 |
documents | 行(一条数据) |
fields | 列 |
Elasticsearch配置