[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