环境配置
cat /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 65536
* hard nproc 65536
[root@sl config]# cat /etc/security/limits.d/20-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
#* soft nproc 4096
#root soft nproc unlimited
* soft nproc 20480
root soft nproc unlimited
sysctl -a|grep vm.max_map_count #这个值要大于262144
sysctl -w vm.max_map_count=655360
cat /etc/sysctl.conf
vm.max_map_count=655360
内存和cpu要求:
内存使用为系统的一半,并且最多32G,cpu最好多个
安装:下载tar包解压就可以了
启动:
- #此为单机架构,启动顺序,我的解压目录为/data/software,如果要输入密码,就是:elsatic/password,IP地址改成自己的ip
- #elasticsearch,启动用户elastic,安装了x-pack,elasticsearch-plugin install x-pack,设置密码:elasticsearch-setup-passwords interactive
- /data/software/elasticsearch-6.3.1/bin/elasticsearch -d
- #kibana,启动用户elastic
- nohup /data/software/kibana-6.3.1-linux-x86_64/bin/kibana &
- #logstash,启动用户root,里面收集日志时,根据月份加入了一个季度字段
- nohup /data/software/logstash-6.3.1/bin/logstash -f /data/software/logstash-6.3.1/config/conf.d/from_beat.conf &
- #filebeat,启动用户elastic,里面的路径根据自己的实际情况修改
- nohup /data/software/filebeat-6.3.1-linux-x86_64/filebeat -e -c /data/software/filebeat-6.3.1-linux-x86_64/filebeat.yml -d publish &
其他:自己成功搭建运行,版本都是6.3.1,配置和公司实际相近,由于上传的资源不能修改积分,本来是想每个 1 积分的,百度了一下,自己修改不了
有需要的就下载吧,还是鼓励自己研究
https://download.youkuaiyun.com/download/mingri_xing/11897625
https://download.youkuaiyun.com/download/mingri_xing/11897658
https://download.youkuaiyun.com/download/mingri_xing/11897677
https://download.youkuaiyun.com/download/mingri_xing/11897858
https://download.youkuaiyun.com/download/mingri_xing/11897888