1、安装 JDK
root@deepin:~# apt-get update
root@deepin:~# apt-get install default-jdk
root@deepin:~# java --version
2、安装 elasticsearch
root@deepin:~# wget https://mirrors.huaweicloud.com/elasticsearch/7.5.2/elasticsearch-7.5.2-amd64.deb
root@deepin:~# dpkg -i elasticsearch-7.5.2-amd64.deb
其他版本请访问:Elasticsearch 国内镜像站
3、安装 ik 分词器
root@deepin:~# wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.5.2/elasticsearch-analysis-ik-7.5.2.zip
root@deepin:~# mkdir /usr/share/elasticsearch/plugins/ik
root@deepin:~# mv elasticsearch-analysis-ik-7.5.2.zip /usr/share/elasticsearch/plugins/ik/
root@deepin:~# cd /usr/share/elasticsearch/plugins/ik/
root@deepin:~# unzip elasticsearch-analysis-ik-7.5.2.zip
其他版本请访问:Elasticsearch IK 分词器
4、启动 elasticsearch
root@deepin:~# systemctl start elasticsearch
root@deepin:~# systemctl status elasticsearch
root@deepin:~# curl localhost:9200
5、安装 kibana
root@deepin:~# wget https://artifacts.elastic.co/downloads/kibana/kibana-7.5.2-amd64.deb
root@deepin:~# dpkg -i kibana-7.5.2-amd64.deb
其他版本请访问:Kibana 下载
6、启动 kibana
root@deepin:~# systemctl start kibana
浏览器访问网址:http://localhost:5601/app/kibana
网友评论