1. 首页 > 软件下载 > 正文

Elasticsearch下载-Elasticsearch下载地址-Elasticsearch下载方法

历史版本

  • 8.12.0 (2023年12月)
  • 8.11.0 (2023年11月)
  • 8.10.0 (2023年10月)
  • 7.17.16 (2023年10月) – LTS版本
  • 7.16.3 (2022年1月)

3.2 包管理器安装

Debian/Ubuntu:

# 导入GPG密钥
wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add –

# 添加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’

# 更新包列表并安装
sudo apt update && sudo apt install elasticsearch

RHEL/CentOS:

# 创建yum仓库文件
sudo vi /etc/yum.repos.d/elasticsearch.repo

# 添加以下内容
[elasticsearch-8.x]
name=Elasticsearch repository for 8.x packages
baseurl=https://artifacts.elastic.co/packages/8.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

# 安装
sudo yum install elasticsearch

3.3 Docker 安装

# 拉取ElasticSearch镜像
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.13.4

# 运行容器
docker run -d –name elasticsearch -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” docker.elastic.co/elasticsearch/elasticsearch:8.13.4

3.4 源码编译

步骤:

  1. 从GitHub克隆源码:git clone https://github.com/elastic/elasticsearch.git
  2. 切换到对应版本:git checkout v8.13.4
  3. 编译:./gradlew assemble

4.2 验证服务是否正常运行

# 启动ElasticSearch
sudo systemctl start elasticsearch

# 验证服务状态
curl -X GET “localhost:9200/”

Download Guide

本文由风哥教程整理发布,仅用于学习测试使用,转载注明出处:http://www.fgedu.net.cn/10327.html

联系我们

在线咨询:点击这里给我发消息

微信号:itpux-com

工作日:9:30-18:30,节假日休息