CentOS安装最新Elasticsearch8支持向量数据库

大家都知道Elasticsearch是支持向量的存储和查询的,今天我们来介绍下如何安装支持向量数据库的Elasticsearch , 操作环境是CentOS。

成功安装截图

大家进入系统shell,跟我执行下面命令进行安装。

更新系统
复制代码
[root@localhost ~]# sudo yum update -y
安装JDK11环境
复制代码
[root@localhost ~]# sudo yum install -y wget java-11-openjdk-devel
导入Elasticsearch GPG密钥
复制代码
[root@localhost ~]# sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
添加Elasticsearch仓库 (全部复制,回车,运行)
复制代码
cat <<EOF | sudo tee /etc/yum.repos.d/elasticsearch.repo
[elasticsearch]
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
EOF
安装Elasticsearch
复制代码
sudo yum install -y elasticsearch
配置Elasticsearch

编辑配置文件 /etc/elasticsearch/elasticsearch.yml

复制代码
[root@localhost ~]# vim /etc/elasticsearch/elasticsearch.yml

在文件末尾添加:

复制代码
# 端口
http.port: 9200
启动并设置开机自启
复制代码
# 启动Elasticsearch服务
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch

# 检查状态
sudo systemctl status elasticsearch

执行 最后一个 查看status状态为下图,代表成功,否则就需要检查日志。

浏览器访问ES , 必须使用https
复制代码
https://192.168.200.131:9200/

要求输入密码, 我们修改下原始密码:

复制代码
sudo /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic -i

然后输入用户名 :elastic , 密码 : 你自己刚刚改的,访问成功:

相关推荐
QXWZ_IA4 分钟前
边坡监测预算有限时的建设顺序:虚拟基准站与成本账
网络·数据库
这个DBA有点耶35 分钟前
1亿条向量内存降95.4%,延迟降80%:金仓AI原生内核真能解决RAG痛点?
数据库·人工智能·开源
Y38153266236 分钟前
用 httpx 写 SerpBase 异步客户端:连接池与超时配置
运维·服务器·数据库
c_hn_0071 小时前
量化数据12:国内期货L2历史数据:Tick、逐笔、五档盘口一次性打包下载
数据库·1024程序员节·#深度订单簿数据·#历史行情订单薄·#本地csv数据存储
GeW1 小时前
从"补短板"到"强优势"Linux与数据库认证成为产业跃迁人才支点
linux·数据库
数据库小学妹1 小时前
MySQL NULL陷阱:NOT IN、三值逻辑与NOT EXISTS
数据库·后端·mysql
SelectDB1 小时前
Doris 异步物化视图实战:与 Snowflake MV / Dynamic Tables 分层建模对照
大数据·数据库·云原生
枫昕柚1 小时前
MySQL 建库命令详解:从 CREATE DATABASE 到create table
数据库·mysql
张张123y2 小时前
后端第十六课:Multi-Agent 多智能体(让多个 Agent 分工协作)
大数据·数据库·人工智能·python·deepseek·dsh·agent 框架
todoitbo2 小时前
MongoDB迁移之后,Spring Data 和 Hibernate 各自接哪类请求
大数据·数据库·mongodb·spring·hibernate·金仓数据库