警告:

暂时还没有适合ElasticSearch 7.10.2的ik分词插件,ik分词插件目前只到 7.10.1, 版本不符合将会导致es启动失败,可以把下面的下载链接中
7.10.2修改为7.10.1即可

1. 前言

官方推荐的方式,是添加repo然后再安装,但是这种方式和直接在服务器下载RPM安装包没什么区别。

这种安装方式没问题,但是这个链接是国外的,所以下载比较慢,可能只有几十kb/s。

这里建议使用本机直接下载RPM安装包 ,然后上传到服务器再安装,具体如下

2.下载ElasticSearch RPM包

https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2-x86_64.rpm 
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2-x86_64.rpm.sha512

这两个都要下载(最好开一下科学,你懂的,才能速度快),然后上传到服务器 /root 下。

3.检验RPM包并安装

shasum -a 512 -c elasticsearch-7.10.2-x86_64.rpm.sha512 
sudo rpm --install elasticsearch-7.10.2-x86_64.rpm

执行上述第一行代码可能会遇到错误,则执行一次 yum install perl-Digest-SHA

正确执行代码,会有大概如下信息:

warning: elasticsearch-7.10.2-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Creating elasticsearch group... OK
Creating elasticsearch user... OK
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
### You can start elasticsearch service by executing
sudo systemctl start elasticsearch.service
Created elasticsearch keystore in /etc/elasticsearch/elasticsearch.keystore

 

然后就可以使用了。

 

添加新评论