安装elasticSearch

下载安装

wget –c  https://mirrors.huaweicloud.com/elasticsearch/7.2.1/elasticsearch-7.2.1-x86_64.rpm

rpm -ivh elasticsearch-7.2.1-x86_64.rpm

启动Elasticsearch并设置开机启动

systemctl daemon-reload
systemctl start elasticsearch
systemctl enable elasticsearch.serviced

  

当前启动后,默认只能本机访问,要想配置远程访问需要修改配置文件

vim /etc/elasticsearch/elasticsearch.yml

配置文件修改如下

# line 17, uncomment
cluster.name: my-application
# line 22, uncomment and change
node.name: node-1
# line 55, uncomment and change
network.host: 0.0.0.0
# line 59, uncomment
http.port: 9200
# line 72, uncomment and change
cluster.initial_master_nodes: ["node-1", "node-2"]

  重启

systemctl stop elasticsearch
systemctl start elasticsearch

 

安装Kibana

wget –c  https://mirrors.huaweicloud.com/kibana/7.2.1/kibana-7.2.1-x86_64.rpm

rpm -ivh kibana-7.2.1-x86_64.rpm

  

确认Kibana安装信息

rpm -qi kibana

  启动Kibana并设置开机启动

systemctl start kibana
systemctl enable kibana

  查看运行状态

systemctl status kibana

  设置允许其他机器访问

vim /etc/kibana/kibana.yml

  重启Kibana

systemctl stop kibana
systemctl start kibana

  

posted on 2021-04-25 11:11  falcon_fei  阅读(104)  评论(0编辑  收藏  举报