前言

Es

ES 搭建

//添加官方源
vi /etc/yum.repos.d/elasticsearch.repo
//安装ES服务
yum install --enablerepo=elasticsearch elasticsearch
//服务启停 service方式
sudo chkconfig --add elasticsearch
sudo -i service elasticsearch start
sudo -i service elasticsearch stop
//systemctl方式
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service

Kibana 搭建

vi /etc/yum.repos.d/kibana.repo
[kibana-7.x]
name=Kibana repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
//添加服务
sudo chkconfig --add kibana
sudo -i service kibana start
sudo -i service kibana stop
//systemd管理
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable kibana.service
sudo systemctl start kibana.service
sudo systemctl stop kibana.service