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安装完成。

相关推荐
vsropy21 小时前
Ubuntu网络图标消失问题/有网络问号
linux·运维·ubuntu
coderwu21 小时前
Ubuntu 24.04 终端输入 openclaw config 提示未找到命令解决办法
linux·运维·ubuntu
未若君雅裁1 天前
日志采集与ELK:从本地日志到集中检索分析
运维·elk·jenkins
醉颜凉1 天前
Elasticsearch性能优化:JVM GC调优全攻略,彻底解决集群卡顿、吞吐量下降问题
jvm·elasticsearch·性能优化
m0_719084111 天前
es我的笔记
大数据·笔记·elasticsearch
Dontla1 天前
CI/CD前世今生(持续集成、持续交付、持续部署、Jenkins、Github Actions)
ci/cd·github·jenkins
学途路漫漫1 天前
Ubuntu 24.04 国内网络环境全面优化指南
linux·网络·ubuntu
S-码农1 天前
vscode 通过 SSH 远程控制 Ubuntu
vscode·ubuntu·ssh
dust_and_stars1 天前
Ubuntu 24.04 使用 Snap 安装 code-server、CLion、PyCharm、JetBrains Toolbox 完整教程
ubuntu·pycharm
学途路漫漫1 天前
Ubuntu 24.04 安装 Howdy 面部识别登录完整指南(含国内网络环境踩坑)
ubuntu