安装 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

相关推荐
姚不倒6 分钟前
负载均衡架构设计:F5 ↔ Nginx/HAProxy ↔ Keepalived 全链路映射
运维·网络·nginx
好评12415 分钟前
【Linux】应用层自定义协议与序列化
linux·运维·网络
fengyehongWorld27 分钟前
Linux caddy的安装与配置
linux·运维·服务器
2401_8628808235 分钟前
Linux应用层开发 --- HTTP
linux·运维·http
可爱系程序猿1 小时前
libcrypto-3-x64.dll 加载失败排查:OpenSSL 3 版本、PATH 顺序与 x64 依赖如何对应
linux·运维·服务器·程序人生·电脑
zbyyd1 小时前
Linux 网络编程:IO 多路复用
linux·运维·c语言·网络
fengyehongWorld1 小时前
Linux 域名申请与DNS解析
linux·运维·服务器
CounterGlew5111 小时前
Vscode通过ssh链接autodl云服务器并配置codex
运维·服务器·vscode
2501_927283581 小时前
数据采集,正在让工厂从“凭经验”走向“看数据”
运维·人工智能·自动化·数据采集·agv·立体仓库
姚不倒1 小时前
Tengine 实战:主动健康检查 + 动态 Upstream 配置
运维·网络·nginx