安装 Elasticsearch7

导入 Elasticsearch 的公钥

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

安装 apt-transport-https 包

sudo apt-get install apt-transport-https

添加 Elasticsearch 的源列表

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

更新 apt 包索引

sudo apt-get update

安装 Elasticsearch

sudo apt-get install elasticsearch

启动并设置 Elasticsearch 在开机时启动

sudo systemctl start elasticsearch

sudo systemctl enable elasticsearch

相关推荐
code_li17 小时前
Netlify全栈开发:零运维部署实战
运维·服务器·部署
艾莉丝努力练剑18 小时前
【Linux:文件】库的制作与原理进阶
linux·运维·服务器·网络·数据库·c++·人工智能
GZ_TOGOGO18 小时前
sudo 命令详解与安全使用指南
linux·运维·安全
yyuuuzz18 小时前
企业出海场景下的技术适配小经验
运维·服务器·网络·云计算·aws
dnfdsaa19 小时前
【如何在Ubuntu 22上安装Claude Code并配置跳过官方引导】
linux·运维·ubuntu
热爱Liunx的丘丘人19 小时前
Docker
运维·docker·容器
AOwhisky19 小时前
Ceph系列第一期:Ceph分布式存储核心概念与架构初识
linux·运维·笔记·分布式·ceph·学习·架构
谷雨不太卷19 小时前
进程如何加载文件
linux·运维·服务器
shandianchengzi19 小时前
【记录】LosslessCut|Linux下配置开源无损剪辑软件 LosslessCut AppImage 命令行启动和设置图标
linux·运维·服务器·音视频·视频·剪辑
小猫咪0119 小时前
Linux 查看端口占用:netstat、ss、lsof 谁更好用?
linux·运维·网络