Elasticsearch RPM安装

本文详细介绍在CentOS7.2环境下使用国内清华镜像源安装配置Elasticsearch7.4.0的过程,包括下载、安装、启动及停止测试等步骤,为用户提供一份实用的部署指南。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境
  • centos 7.2
  • JKD 11
  • elasticsearch 7.4.0

国内镜像

https://mirrors.tuna.tsinghua.edu.cn/elasticstack/

安装

$ cd /var/tmp
/# 下载
$ wget https://mirrors.tuna.tsinghua.edu.cn/elasticstack/7.x/yum/7.4.0/elasticsearch-7.4.0-x86_64.rpm

//# 安装
$ rpm -ivh elasticsearch-7.4.0-x86_64.rpm

//# 启动测试
$ sudo systemctl start elasticsearch.service
$ curl 'http://localhost:9200/?pretty'
{
  "name" : "vps156",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "hA94l8VYQ7ubqCnm0fqNyw",
  "version" : {
    "number" : "7.4.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "22e1767283e61a198cb4db791ea66e3f11ab9910",
    "build_date" : "2019-09-27T08:36:48.569419Z",
    "build_snapshot" : false,
    "lucene_version" : "8.2.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

//# 停止测试
$ sudo systemctl stop elasticsearch.service
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值