# 添加一个名字是es工做组 groupadd es # 添加用户es设置密码elsticsearch并设置工做组es useradd es -g es -p elsticsearch
不出意外的话按照上面的方式安装,你是运行不起来的bootstrap
问题一
这个问题以前安装的时候没有碰见过,不知道具体缘由
解决方式
修改elsticsearch.yml配置文件,添加xpack.ml.enabled: falsecentos
问题二
为了能够外网访问,咱们须要在elsticsearch.yml配置文件中添加network.host: 0.0.0.0
可是在添加了这个以后会冒出来这么个错误
这里明确指出了三个问题,一个一个解决
1)错误:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决办法:
在/etc/sysctl.conf文件最后添加一行vm.max_map_count=262144服务器
2)错误:system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
缘由:jvm
这是在由于Centos6不支持SecComp,而ES5.2.0默认bootstrap.system_call_filter为true进行检测,因此致使检测失败,失败后直接致使ES不能启动。elasticsearch
解决办法:
在elasticsearch.yml配置文件中加入如下配置
~~~
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
~~~
3)错误:JVM is using the client VM [Java HotSpot(TM) Client VM] but should be using a server VM for the best performance
缘由:性能
JVM正在使用客户机VM [Java HotSpot(TM)客户机VM],可是为了得到最佳性能,应该使用服务器VMcode
解决办法:orm
修改JDK中jre/lib/i386/jvm.cfg文件
原来的文件应该是这样的
把这两个位置调换server