这篇文章只演示环境配置,具体的操作步骤后续书写
环境准备
192.168.0.75 centos 安装kibana
192.168.0.90 centos 安装elticsearsh
192.168.0.91 centos 安装elticsearsh
192.168.0.92 centos 安装logstash
192.168.0.93 windows 安装logstash
一,配置192.168.0.90、192.168.0.91,安装elasticsearch,两台进行一样的配置
192.168.0.90(java-1.8.0-openjdk elasticsearch从官网下载,直接百度)
[root@es-0001 ~]# vim /etc/hosts
192.168.1.90 es-0001
192.168.0.91 es-0002
[root@es-0001 ~]# yum install -y java-1.8.0-openjdk elasticsearch
[root@es-0001 ~]# vim /etc/elasticsearch/elasticsearch.yml
17: cluster.name: my-es
23: node.name: es-0001 # 本机主机名
55: network.host: 0.0.0.0
68: discovery.zen.ping.unicast.hosts: ["es-0001", "es-0002"]
[root@es-0001 ~]# systemctl enable elasticsearch