ik分词插件安装

[root@a ~]# cd /opt/es/elasticsearch-6.3.1/plugins/
[root@a plugins]# ls
analysis-ik

注意切换用户启动es
[es@a bin]$ nohup ./elasticsearch &
[1] 3408
[es@a bin]$ nohup: 忽略输入并把输出追加到"nohup.out"

[es@a bin]$ ./elasticsearch
提示没有权限
切换到root用户设置权限 注意输入root账户的密码
[root@a opt]# chmod -R 777 es/

network.host: 192.168.39.100

Set a custom port for HTTP:

http.port: 9200

报错如下使用命令清除缓存
ava.lang.IllegalStateException: failed to obtain node locks, tried [[/opt/es/elasticsearch-6.3.1/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
ava.lang。获取节点锁失败,使用锁id[0]尝试[[/opt/es/elasticsearch-6.3.1/data/elasticsearch]];可能这些位置是不可写的,或者多个节点启动时没有增加[node]。max_local_storage_nodes] ([1]) ?

[es@a data]$ rm -rf …/data/
[es@a bin]$ nohup ./elasticsearch &
[1] 3408
[es@a bin]$ nohup: 忽略输入并把输出追加到"nohup.out"

[es@a bin]$ ./elasticsearch
报错OOM…

[root@a config]# ls
elasticsearch.keystore jvm.options role_mapping.yml users
elasticsearch.yml log4j2.properties roles.yml users_roles
[root@a config]# vi jvm.options

修改 jvm.options 的2个为128M
################################################################

IMPORTANT: JVM heap size

################################################################

You should always set the min and max JVM heap

size to the same value. For example, to set

the heap to 4 GB, set:

-Xms4g

-Xmx4g

See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html

for more information

################################################################

Xms represents the initial size of total heap space

Xmx represents the maximum size of total heap space

-Xms128m
-Xmx128m

################################################################

Expert settings

################################################################

All settings below this section are considered

expert settings. Don’t tamper with them unless

you understand what you are doing

访问成功
http://192.168.39.100:9200/

开启kibana
[root@a bin]# ./kibana

测试分词器的效果ok

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值