安装

brew 安装

  1. // 删除已有的文件
  2. brew install elasticsearch@6
  3. brew install kibana@6
  4. brew services start rabbitmq@6
  5. brew services start elasticsearch@6

安装路径与日志路径:
/usr/local/etc/elasticsearch
/usr/local/var/log

安装插件

在 elasticsearch 执行文件目录下执行。
sql 转 es query 插件 elasticsearch-sql:
https://github.com/NLPchina/elasticsearch-sql

  1. ./bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/6.8.11.0/elasticsearch-sql-6.8.11.0.zip

ik 分词器插件:

  1. ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.8.11/elasticsearch-analysis-ik-6.8.11.zip