Ubuntu系统安装Elasticsearch

Ubuntu 系统安装 Elasticsearch

1、检测系统是否为最新,更新包索引

apt-get update

2、导入Elasticsearch公钥

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add --

3、添加Elasticsearch到APT源列表

sudo sh -c 'echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" > /etc/apt/sources.list.d/elastic-8.x.list'

4、自动安装elasticsearch

Apt-get install elasticsearch

不成功,只能采取下载安装

5、手动下载

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.13.1-amd64.deb

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.13.1-amd64.deb.sha512

6、手动安装

shasum -a 512 -c elasticsearch-8.13.1-amd64.deb.sha512

sudo dpkg -i elasticsearch-8.13.1-amd64.deb

安装结束

7、运行系统服务配置

sudo /bin/systemctl daemon-reload

8、启动Elasticsearch

sudo systemctl enable elasticsearch.service

sudo systemctl start elasticsearch.service

9、查看Elasticsearch运行状态

systemctl status elasticsearch.service

10、修改,编辑配置文件

11、重启Elasticsearch

systemctl restart elasticsearch.service

12、验证Elasticsearch是否正常

curl -X GET "localhost:9200/"

13、Windows系统浏览器打开

至此,Elasticsearch 8.13.1安装完成。

相关推荐
本旺1 小时前
Elasticsearch 前缀匹配性能优化实战,附4种方式即执行计划判别
大数据·elasticsearch·性能优化
Uncertainty!!4 小时前
Ubuntu 22.04 安装超好用中文输入法rime-ice(雾凇拼音)过程记录
linux·ubuntu·中文输入法
Elastic 中国社区官方博客6 小时前
Elastic 在 Everest Group 企业搜索产品 PEAK Matrix® 评估 2026 中被评为领导者
大数据·运维·人工智能·elasticsearch·搜索引擎·ai·全文检索
Java小白笔记8 小时前
Codex Skills 分类整理
大数据·人工智能·elasticsearch·搜索引擎·ai·ai编程·ai写作
HAPPY酷9 小时前
【ROS2】 Conda 环境搭建(命令行版)
linux·运维·python·ubuntu·机器人·conda
Elastic 中国社区官方博客11 小时前
谁来评判评判者?在 Elasticsearch Workflows 中使用 LLM-as-a-Judge
大数据·运维·人工智能·elasticsearch·搜索引擎·ai·全文检索
Elastic 中国社区官方博客14 小时前
使用 Elasticsearch 作为 Grafana 的直接替代 Prometheus 后端
大数据·数据库·sql·elasticsearch·搜索引擎·grafana·prometheus
醉熏的石头1 天前
Ubuntu 中的编程语言(中)
linux·ubuntu·scala
阿里云大数据AI技术1 天前
AI Search × ES Agent Builder 最佳实践:企业智能助手落地指南
人工智能·elasticsearch
bukeyiwanshui1 天前
20260622 安装配置ubuntu
linux·运维·ubuntu