[ Spring ] Install Elastic Search Suit on Ubuntu24

ElasticSearch Pack Suit
  • ElasticSearch : search component
  • Logstash : data collect
  • Kibana : data visual analysis
HomePage
bash 复制代码
https://www.elastic.co/downloads
Download ElasticSearch
bash 复制代码
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.17.0-linux-x86_64.tar.gz
Configure ElasticSearch
bash 复制代码
open config/elasticsearch.yml
bash 复制代码
network.host: 0.0.0.0
discovery.seed_hosts: []
xpack.security.enabled: false
Start ElasticSearch
bash 复制代码
bin/elasticsearch
Test ElasticSearch Service
bash 复制代码
curl -X GET "localhost:9200"
bash 复制代码
http://localhost:9200
Download Logstash
bash 复制代码
https://artifacts.elastic.co/downloads/logstash/logstash-8.17.0-linux-x86_64.tar.gz
Configure Logstash
bash 复制代码
touch config/logstash.conf
open config/logstash.conf
bash 复制代码
input {
  beats {
    port => 5044
  }
  tcp {
    port => 5043
  }
  http {
    port => 5045
    codec => "json"
  }
}

output {
  elasticsearch {
    hosts => "http://localhost:9200"
    document_id => "test"
    index => "testindex"
  }
  stdout { codec => rubydebug }
}
Start Logstash
bash 复制代码
bin/logstash -f config/logstash.conf
Test Logstash Service
bash 复制代码
curl -X POST -H "Content-Type: application/json" -d '{"id":"100"}' http://localhost:5045
Download Kibana
bash 复制代码
https://artifacts.elastic.co/downloads/kibana/kibana-8.17.0-linux-x86_64.tar.gz
Configure Kibana
bash 复制代码
open config/kibana.yml
bash 复制代码
server.port: 5601
server.host: "localhost"
elasticsearch.hosts: ["http://localhost:9200"]
Start Kibana
bash 复制代码
bin/kibana
Test Kibana Service
bash 复制代码
http://localhost:5601
相关推荐
呼啦啦啦啦啦啦啦啦2 小时前
常见的排序算法
java·算法·排序算法
anlogic3 小时前
Java基础 8.18
java·开发语言
练习时长一年4 小时前
AopAutoConfiguration源码阅读
java·spring boot·intellij-idea
源码宝5 小时前
【智慧工地源码】智慧工地云平台系统,涵盖安全、质量、环境、人员和设备五大管理模块,实现实时监控、智能预警和数据分析。
java·大数据·spring cloud·数据分析·源码·智慧工地·云平台
百思可瑞教育5 小时前
Git 对象存储:理解底层原理,实现高效排错与存储优化
大数据·git·elasticsearch·搜索引擎
David爱编程5 小时前
面试必问!线程生命周期与状态转换详解
java·后端
J_bean5 小时前
Spring AI Alibaba 项目接入兼容 OpenAI API 的大模型
人工智能·spring·大模型·openai·spring ai·ai alibaba
LKAI.6 小时前
传统方式部署(RuoYi-Cloud)微服务
java·linux·前端·后端·微服务·node.js·ruoyi
HeyZoeHey6 小时前
Mybatis执行sql流程(一)
java·sql·mybatis
2301_793086876 小时前
SpringCloud 07 微服务网关
java·spring cloud·微服务