Mac OS 安装 Elasticsearch 使用 analysis

系统: Mac OS X
Elasticsearch 版本: 5.6.4 Analysis-ik 5.6.4

1# 更新 brew 2$ brew update 3# 修改formula 4$ cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula 5$ git checkout 5874ac8c8fab69f8a714d643581e489bcb176d92 elasticsearch@5.6.rb 6# 安装 7$ brew install elasticsearch@5.6 8# 查看 9$ brew info elasticsearch@5.6 10# 锁定版本, 防止被误升级 11$ brew pin elasticsearch@5.6 12# 安装ik 13$ cd /usr/local/Cellar/elasticsearch@5.6/5.6.4 14$ bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v5.6.4/elasticsearch-analysis-ik-5.6.4.zip

配置

1# /usr/local/etc/elasticsearch/elasticsearch.yml 2cluster.name: 集群名字 3node.name: 节点名 4path.data: 数据存储目录 5path.logs: 日志存储目录 6action.auto_create_index: false

内存

1# /usr/local/etc/elasticsearch/jvm.options 2# 指定使用内存 3-Xms128m 4-Xmx128m

使用

1# 查看状态 2$ brew services list 3# 启动/重启/停止 4$ brew services start elasticsearch@5.6 5$ brew services restart elasticsearch@5.6 6$ brew services stop elasticsearch@5.6
点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

皕杰报表之UUID

​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

2020年前端实用代码段,为你的工作保驾护航

有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )

Mac OS 安装 Elasticsearch 使用 analysis - HelloWorld