源码部署EFK
基础环境
- 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
- 关闭内核安全机制
sed -i "s/.*SELINUX=.*/SELINUX=disabled/g" /etc/selinux/config
reboot
- 修改主机名
第一台机器 hostnamectl set-hostname es01
第二台机器 hostnamectl set-hostname kibana
第三台机器 hostnamectl set-hostname filebeat
- 添加hosts映射
cat >> /etc/hosts << 'EOF'
192.168.93.128 es01
192.168.93.129 kibana
192.168.93.130 filebeat
EOF
一、部署ES
第一台机器部署ES
- 修改limit限制,添加系统
cat > /etc/security/limits.d/es.conf << EOF
* soft nproc 655360
* hard nproc 655360
* soft nofile 655360
* hard nofile 655360
EOF
- 添加内核参数,并生成
cat >> /etc/sysctl.conf << EOF
vm.