Skip to content

Commit 1bac9d8

Browse files
authored
Update ELK-Install-And-Settings.md
1 parent 3ddf598 commit 1bac9d8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ELK-Install-And-Settings.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ elasticsearch hard memlock unlimited
137137
- Bigdesk:`/usr/program/elk/elasticsearch-2.4.1/bin/plugin install hlstudio/bigdesk`
138138
- 安装完的访问地址:`http://192.168.1.127:9200/_plugin/bigdesk`
139139
- 卸载:`/usr/share/elasticsearch/bin/elasticsearch-plugin remove 插件名称`
140-
- IK 分词插件的安装(**重点:所有节点都需要安装此插件*
140+
- IK 分词插件的安装(**重点:所有节点都需要安装此插件**
141141
- IK 分词官网:<https://github.com/medcl/elasticsearch-analysis-ik>
142142
- 官网首页已经有一个表格说明 ES 版本和 IK 插件的版本对应,我们可以看到:ES 2.4.1 对应 IK 分词 1.10.1,下载地址:<https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v1.10.1>
143143
- 进入 ES 插件目录:`cd /usr/program/elk/elasticsearch-2.4.1/plugins`
@@ -266,6 +266,15 @@ index.analysis.analyzer.default.type: "ik"
266266
]
267267
```
268268

269+
- Elasticsearch 5.x 版本之后,就不需要再修改这个配置文件了 `/usr/program/elk/elasticsearch-2.4.1/config/elasticsearch.yml`,直接解压 zip 后,直接可以启动,然后再开一个终端,输入下面命令:
270+
271+
``` shell
272+
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
273+
"index.analysis.analyzer.default.tokenizer" : "ik_max_word",
274+
"index.analysis.analyzer.default.type" : "ik"
275+
}'
276+
```
277+
269278
### 构建 elasticsearch 集群
270279

271280
- 另外一台机子也同样这样安装,但是有几个地方有差别:

0 commit comments

Comments
 (0)