全文检索技术_Elasticsearch下载安装

Elasticsearch官网:
https://www.elastic.co/

安装流程

CentOS操作系统,可以通过两种方式安装Elasticsearch。

1.通过yum安装:

配置yum源:

[elasticsearch]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md
yum install --enablerepo=elasticsearch elasticsearch

2.通过rpm包安装

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.1-x86_64.rpm

rpm --install elasticsearch-7.7.1-x86_64.rpm

如果下载比较慢,可以去中文社区下载你心仪的版本:(最终我采用的方式)
https://elasticsearch.cn/download/

下载并安装完毕后,出现如下提示:

### 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

按照提示,依次执行:

systemctl daemon-reload
systemctl enable elasticsearch.service
systemctl start elasticsearch.service

打开另外一个终端,执行以下命令,测试是否安装成功:

curl ‘http://localhost:9200/?pretty’

全文检索技术_Elasticsearch下载安装_第1张图片

你可能感兴趣的:(全文检索技术)