目录
环境:
192.168.1.4
jdk
elasticsearch
kibana
192.168.1.5
jdk
logstash
1 时间同步
yum -y install ntpdate
ntpdate pool.ntp.org
2 防火墙
systemctl stop firewalld
setenforce 0
3 解压压缩包
yum -y install unzip
unzip ELK.zip
4 安装jdk
rpm -ivh jdk-8u131-linux-x64_.rpm
验证:
java -version
5 安装elasticsearch
yum -y install elasticsearch-6.6.2.rpm
编辑主配置文件:
vim /etc/elasticsearch/elasticsearch.yml
[root@bogon ELK]$ cat /etc/elasticsearch/elasticsearch.yml |grep -v "^#"
cluster.name: wg007
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 192.168.1.4
http.port: 9200