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

相关推荐
東雪蓮☆2 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_264220892 小时前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
乌萨奇也要立志学C++3 小时前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy3 小时前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡
Yyyy4823 小时前
Nginx负载均衡集群实验步骤
运维·nginx·负载均衡
獭.獭.4 小时前
Linux -- 信号【上】
linux·运维·服务器
hashiqimiya4 小时前
centos配置环境变量jdk
linux·运维·centos
路由侠内网穿透6 小时前
本地部署 GPS 跟踪系统 Traccar 并实现外部访问
运维·服务器·网络·windows·tcp/ip
傻傻虎虎8 小时前
【Docker】常用帮忙、镜像、容器、其他命令合集(2)
运维·docker·容器
ZERO_pan9 小时前
服务器装机遇到的问题
运维·服务器