Elasticsearch8.1基于CentOS7.9的单机安装

本文档记录了在CentOS 7.9环境下安装Elasticsearch 8.1的详细步骤,包括下载安装介质、配置系统参数、启动Elasticsearch并解决启动过程中遇到的问题,以及安装和配置Kibana 8.1。

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

最近在学习ES的认证考试,也顺便把一些ES安装实施的步骤记录下来,以给有需要的同学借鉴。

硬件配置(虚拟机):2 CPU, 12GB内存,100GB磁盘(当然可以不需要这么大)

OS: CentOS Linux release 7.9.2009 (Core)

计划安装软件:ES 8.1, Kibana8.1

JDK选择:
在elasticsearch7以上的版本中会自带Open JDK,因此建议用自带的JDK,当然也可以单独安装自定义的JDK。

1,下载安装介质

ES和Kibana都建议到官网下载,下载地址:

Elasticsearch:官方分布式搜索和分析引擎 | Elastic

上传到服务器:

​​​​​​​[root@localhost install]# ll
total 1338300
-rw-r--r--. 1 root root 1100738560 Oct 16 11:07 elasticsearch-8.1.0-linux-x86_64.tar
-rw-r--r--. 1 root root  269678786 Oct 16 11:07 kibana-8.1.0-linux-x86_64.tar.gz
解压elasticsearch-8.1.0-linux-x86_64.tar到/app/es目录
[root@localhost es]# pwd
/app/es
[root@localhost es]# ls -ltr
total 860
-rw-r--r--.  1 root root   2710 Mar  3  2022 README.asciidoc
-rw-r--r--.  1 root root   3860 Mar  3  2022 LICENSE.txt
drwxr-xr-x.  2 root root      6 Mar  3  2022 plugins
drwxr-xr-x.  2 root root      6 Mar  3  2022 logs
-rw-r--r--.  1 root root 858797 Mar  3  2022 NOTICE.txt
drwxr-xr-x.  3 root root   4096 Mar  3  2022 lib
drwxr-xr-x.  2 root root   4096 Mar  3  2022 bin
drwxr-xr-x.  9 root root    121 Mar  3  2022 jdk
drwxr-xr-x. 66 root root   4096 Mar  3  2022 modules
drwxr-xr-x.  3 root root    210 Oct 16 11:09 config
ES默认不建议使用root账户运行。使用新建的es用户运行。
[root@localhost ~]# cd /app
[root@localhost app]# ll
total 0
drwxr-xr-x. 9 root root 155 Oct 16 11:09 es
drwxrwxrwx. 2 root root  90 Oct 16 11:40 install
[root@localhost app]# chown -R es.es es
[root@localhost app]# ll es
total 860
drwxr-xr-x.  2 es es   4096 Mar  3  2022 bin
drwxr-xr-x.  3 es es    210 Oct 16 11:09 config
drwxr-xr-x.  9 es es    121 Mar  3  2022 jdk
drwxr-xr-x.  3 es es   4096 Mar  3  2022 lib
-rw-r--r--.  1 es es   3860 Mar  3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yangkei

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值