ES环境安装

2019-08-13  本文已影响0人  hlchengzi

安装过程

安装过程参考:https://www.cnblogs.com/lxyuuuuu/p/9619681.html
推荐使用安装包下载的方式
es需要支持jdk的版本,所以这里用的是jdk11,jdk11抛弃CMS垃圾收集器
貌似es6.0+不需要创建用户然后才可以登录

安装成功后截图


安装后截图

ES的一些基本配置需要参考:https://www.cnblogs.com/sharesdk/p/7865586.html

安装当中遇到的错误类型

1,ElasticSearch : Option UseConcMarkSweepGC

错误,在新版本的es当中,需要支持jdk11,但是,es中默认的还是CMS垃圾回收器,所以要将
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
修改为:
-XX:+UseG1GC
-XX:MaxGCPauseMill

2,Native controller process has stopped - no new native processes can be start

一般方法:
vi /etc/sysctl.conf

添加: vm.max_map_count=655360 然后保存

然后 cd /etc

输入: sysctl -p
如果还是不行:继续
继续用root去修改

vi /etc/security/limits.conf

加入:

* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
3,system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

出现错误的原因:是因为centos6.x操作系统不支持SecComp,而elasticsearch 5.5.2默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动。
在elasticsearch.yml中添加配置项:bootstrap.system_call_filter为false:
bootstrap.system_call_filter: false

参考:https://www.jianshu.com/p/52337f48f749

上一篇 下一篇

猜你喜欢

热点阅读