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