转载自: http://www.itdadao.com/articles/c15a1228740p0.html
1、启动 elasticsearch 如出现异常 can not run elasticsearch as root
解决方法:创建elasticsearch 账户,修改文件夹 文件 所属用户 组
2、启动异常:ERROR: bootstrap checks failed
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
问题原因:因为Centos6不支持SecComp,而ES5.2.1默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动。详见 :https://github.com/elastic/elasticsearch/issues/22899
解决方法:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
3、启动后,如果只有本地可以访问,尝试修改配置文件 elasticsearch.yml
中network.host(注意配置文件格式不是以 # 开头的要空一格, : 后要空一格)
为 network.host: 0.0.0.0
默认端口是 9200
注意:关闭防火墙 或者开放9200端口
4、ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]
解决方法:切换到root用户,编辑limits.conf 添加类似如下内容
vi /etc/security/limits.conf
添加如下内容:
-
soft nofile 65536
-
hard nofile 131072
-
soft nproc 2048
-
hard nproc 4096
5、max number of threads [1024] for user [lish] likely too low, increase to at least [2048]
解决:切换到root用户,进入limits.d目录下修改配置文件。
vi /etc/security/limits.d/90-nproc.conf
修改如下内容:
- soft nproc 1024
修改为
- soft nproc 2048
6、max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
解决:切换到root用户修改配置sysctl.conf
vi /etc/sysctl.conf
添加下面配置:
vm.max_map_count=655360
并执行命令:
sysctl -p
然后,重新启动elasticsearch,即可启动成功。
相关推荐
elasticsearch5.2.2
来自ES官方5.2.2版本 搭配KIBANA 5.2.2版本使用 开箱即可运行 选择/bin 下的elasticSearch.bat即可运行 支持springboot data ealsticsearch
elasticsearch,kibana,搜索引擎
elasticsearch全文搜索引擎5.2.2程序下载,Windows版本
基于Java+Maven实现的elasticsearch5.2.2的搜索,代码中实现了IK+pinyin分词器混合使用进行查询,有index、mapping、field的建立方法,也有不同的查询方法,也有数据组装封装发方法。
elasticsearch-5.2.2客户端JAVA开发需要的69个jar包。当然也可以通过maven自动下载。activation-1.1.jar,bcpkix-jdk15on-1.55.jar,bcprov-jdk15on-1.55.jar,commons-codec-1.10.jar,commons-logging-1.2.jar,...
ElasticSearch是一个搜索服务器,提供了一个分布式多用户能力的全文搜索引擎。 tar包,release版本
访问elasticsearch集群发现访问不了,查了下日志才发现,我的license过期啦!为处理许可证过期时间,小编特做
elasticsearch-5.2.2
elasticsearch ik分词,可以让搜索更精准
CentOS7下安装搭建elasticsearch-5.2.2.tar.gz分布式集群的全过程,包括创建非root用户、配置参数设置等详细过程,这是本人亲自搭建,有详细的截图说明过程。 说明的是:CentOS7下基本的JDK、防火墙等设置就不多讲
Elasticsearch 子项目:服务器 org.elasticsearch/elasticsearch/5.2.2/elasticsearch-5.2.2.jar
elasticsearch-analysis-ik-5.2.2
ElasticSearch 5.2.2 需要JDK1.8
使用有问题可以联系我. 如果不使用maven 可以找我要jar包,使用过程中发现问题请大家指教. 所有的连接连接方式,数据库的连接方式,索引名称和类型全部写在EsAll.class中 各部分都有注释,很简单的一部分代码.
elasticsearch-7.7(内含一键安装脚本)
elasticsearch +Kibana的安装配置 elasticsearch 是存储数据,Kibana展示数据,获取数据可以使用beat或logstash
ElasticSearch6.7.0安装过程记录
Elasticsearch用于云计算中,能够达到实时搜索,稳定,可靠,快速,安装使用方便。官方客户端在Java、.NET(C#)、PHP、Python、Apache Groovy、Ruby和许多其他语言中都是可用的。根据DB-Engines的排名显示,Elastic...
(狂神)ElasticSearch快速入门笔记,ElasticSearch基本操作以及爬虫(Java-ES仿京东实战),包含了小狂神讲的东西,特别适合新手学习,笔记保存下来可以多看看。好记性不如烂笔头哦~,ElasticSearch,简称es,es是一个...