centos7上安装ELK

时间:2025-03-01 18:04:56

author:headsen chen

data :2017-12-04  18:00:57

notice:created by chen himself and not allowed to copy ,or you will counte questions of law.

install steps:

yum -y remove java

yum -y install java

centos7上安装ELK

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

vim elasticsearch.repo

[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

yum install elasticsearch -y

/bin/systemctl daemon-reload
/bin/systemctl enable elasticsearch.service
systemctl start elasticsearch.service
systemctl status elasticsearch.service
netstat -plnt |grep java   -------------------------------------- 要等一分钟才有数据
lsof -i :9200  ------------------------------------------------ 要等一分钟才有数据
cat /var/log/elasticsearch/elasticsearch.log
centos7上安装ELK