ELK 6.x 部署

Elasticsearch版本:6.3.2

Kibana版本:6.3.2

 

1.es安装

按照官方提示操作即可。

通过yum安装或者下载tar包解压。

安装完成之后,需要修改一些配置

①修改文件 /etc/sysctl.conf

#添加以下内容
vm.max_map_count=655360

执行命令:

sysctl -p

 这一步可以解决问题:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

 ②修改文件/etc/security/limits.conf  (es为启动es程序的用户,默认是不允许使用root用户操作es的)

es soft nofile 65536 
es hard nofile 65536 
es soft nproc 2048 
es hard nproc 2048 
es soft memlock unlimited 
es hard memlock unlimited

 

解决的问题:
[2018-08-14T09:35:24,417][WARN ][o.e.b.JNANatives         ] Unable to lock JVM Memory: error=12, reason=Cannot allocate memory
[2018-08-14T09:35:24,417][WARN ][o.e.b.JNANatives         ] This can result in part of the JVM being swapped out.
[2018-08-14T09:35:24,418][WARN ][o.e.b.JNANatives         ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2018-08-14T09:35:24,418][WARN ][o.e.b.JNANatives         ] These can be adjusted by modifying /etc/security/limits.conf, for example: 
	# allow user 'es' mlockall
	es soft memlock unlimited
	es hard memlock unlimited
[2018-08-14T09:35:24,418][WARN ][o.e.b.JNANatives         ] If you are logged in interactively, you will have to re-login for the new limits to take effect.

 

③修改文件 /etc/security/limits.d/90-nproc.conf (将1024改为2048)

* soft nproc 2048

 

 

④修改 es配置文件 config/elasticsearch.yml (根据安装方式不同,这个文件位置不同)

bootstrap.system_call_filter: false

 

解决的问题:

system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

 

转载于:https://www.cnblogs.com/TiestoRay/p/9475400.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值