Elasticsearch6.3安装

本文详细介绍了Elasticsearch 6.3的RPM安装方法,包括创建elasticsearch.repo文件、启动与配置步骤。特别提醒,RPM安装不支持旧版操作系统,建议使用tar.gz安装。安装后需注意Java版本要求、系统配置、内存锁定以及文件描述符等关键设置。
摘要由CSDN通过智能技术生成

Elasticsearch6.3版本开始支持sql,所以赶紧弄来玩玩,本文介绍RPM安装方式。

RPM安装可以从网上下载进行安装也可以通过RPM仓库进行安装,他可以在任何基于RPM的系统上进行安装,包括OpenSuSE, SLES, Centos, Red Hat, 和 Oracle Enterprise。

注意:RPM安装方式不支持旧版本的操作系统,如SLES 11 ,CentOS 5,请用zip,tar.gz进行安装。

          Elasticsearch需要Java8以上版本。

1.安装

 1.1从RPM仓库安装

 创建文件elasticsearch.repoRedHat 系统/etc/yum.repos.d/路径下,OpenSuSE系统在/etc/zypp/repos.d/路径下

 

[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1

type=rpm-md

用以下命令安装Elasticsearch:

 

sudo yum install elasticsearch   centos系统跟老版本Redhat系统
sudo dnf install elasticsearch FedoraRedhat系统跟新版本Redhat系统
sudo zypper install elasticsearch OpenSUSE系统  centos系统跟老版本Redhat系统
sudo dnf install elasticsearch FedoraRedhat系统跟新版本Redhat系统
sudo zypper install elasticsearch OpenSUSE系统

 

1.2手动下载安装:

 

 

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.rpm
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.rpm.sha512
shasum -a 512 -c elasticsearch-6.3.0.rpm.sha512 
sudo rpm --install elasticsearch-6.3.0.rpm
sudo rpm --install elasticsearch-6.3.0.rpm

 

校验成功会返回:elasticsearch-6.3.0.rpm: OK

 

RPM将配置文件、日志和数据目录放置在基于RPM的系统的适当位置

 

 

home目录       /usr/share/elasticsearch

bin目录         /usr/share/elasticsearch/bin

conf目录     /etc/elasticsearch   /etc/sysconfig/elasticsearch

data目录   /var/

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值