搜索

centos7安装ELS7.2.1


发布时间: 2022-11-24 18:45:03    浏览次数:42 次

安装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

  

免责声明 centos7安装ELS7.2.1,资源类别:文本, 浏览次数:42 次, 文件大小:-- , 由本站蜘蛛搜索收录2022-11-24 06:45:03。此页面由程序自动采集,只作交流和学习使用,本站不储存任何资源文件,如有侵权内容请联系我们举报删除, 感谢您对本站的支持。 原文链接:https://www.cnblogs.com/falcon-fei/p/14699561.html