码迷,mamicode.com
首页 > 其他好文 > 详细

ELK 日志学习

时间:2019-01-08 21:03:01      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:har   image   limits   arc   否则   height   tps   rtu   get   

一.Elasticsearch 安装

官网下载地址:https://www.elastic.co/cn/   

(下载Linux版),上传到本地虚拟机服务器 ,tar -zxvf  解压,运行

遇到的问题1 : 不允许 root  用户启动

     解决:

adduser  test 
passwd   test
chown -R  test  文件根目录

遇到的问题2:

  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]
  解决:(切记,添加完退出登陆,再登陆,否则不会生效

vim    /etc/security/limits.conf 
添加如下内容:

*     soft     nofile     65536

*     hard     nofile     131072

*     soft     nproc     2048

*     hard     nproc     4096

遇到的问题3:

  max number of threads [1024] for user [lish] likely too low, increase to at least [2048]

  解决:

vim     /etc/security/limits.d/90-nproc.conf 
修改或者添加下:
*     soft     nproc     2048

遇到的问题4:

max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

  解决:

vim     /etc/sysctl.conf
添加
vm.max_map_count=655360
退出执行
sysctl -p

遇到的问题5:

再虚拟机中 127.0.0.1:9200 成功 , 外部 :虚拟机 ip:9200 失败

  解决:

在conf 文件下添加:
net.host: 虚拟机IP

最后:在主机

 技术分享图片

在虚拟机:

 技术分享图片

 

ELK 日志学习

标签:har   image   limits   arc   否则   height   tps   rtu   get   

原文地址:https://www.cnblogs.com/baizhuang/p/10241014.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!