[ 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
相关推荐
SL_staff几秒前
财务系统慎用低代码?从数据模型闭环看合规落地的技术实践
java·低代码·全栈
滕州市燕猫虎计算机科技工作室个体工商户9 分钟前
IDEA:Command line is too long
java·ide·intellij-idea
步行cgn40 分钟前
Spring p 命名空间注入详解
java·前端·spring
YatHinLay43 分钟前
MyBatis 流式查询实战:ResultHandler 处理海量数据
java
天天被压力1 小时前
【跨市场数据实战 #08】可转债折价机会怎么筛:3个接口抓比价、列表和实时盘口
java·人工智能·python
张某布响丸辣2 小时前
附件下载的安全边界:路径白名单、NAS 哨兵文件与 Redis Lua 一次性令牌
java·redis·redis lua·nas哨兵
传奇开心果编程2 小时前
【Jetpack Compose基础语法学与练】第8课 rememberSaveable,页面旋转/系统重建保留状态
android·学习·ui·kotlin·android jetpack
YatHinLay2 小时前
Spring Boot + Calcite 实现跨库查询
java
酷炫码神3 小时前
MosMos 创意效果与能力边界展示
java
Wang's Blog3 小时前
Java 接入Redis: 使用Jedis操作Redis
java·服务器·redis