Linux系统中安装elasticsearch详解

官方网站:

Install Elasticsearch from archive on Linux or MacOS | Elasticsearch Guide [7.17] | Elastic

一、安装命令:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.6-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.6-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-7.17.6-linux-x86_64.tar.gz.sha512 
tar -xzf elasticsearch-7.17.6-linux-x86_64.tar.gz
cd elasticsearch-7.17.6/

如果遇到颁发证书失效的问题,可以加上 --no-check-certificate

如:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.6-linux-x86_64.tar.gz.sha512 --no-check-certificate

二、配置es环境设置:

2.1 外网可以访问

        需要修改config文件夹中的elasticsearch.yml文件。

2.2 运行内存配置

        es运行是比较吃内存的,默认使用内存也是较大的。 需要修改config文件夹中的jvm.options文件。

三、启动es: 

效果展示:  【出现这个页面说明es安装成功了】

在elasticsearch-head中查看es数据效果:

四、安装过程中可能遇到的问题:

4.1 问题1:

4.2 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

解决方案详见博文:

解决:max file descriptors [65535] for elasticsearch process is too low_春风化作秋雨的博客-CSDN博客_max file descriptors [65535] for elasticsearch pro

注意:此更改仅在当前用户下次打开新会话时生效!

4.3 max number of threads [3795] for user [keepmoving] is too low, increase to at least [4096]

解决方案详见博文:

ES 报错:max number of threads [3795] for user [elastic] is too low, increase to at least [4096]_黄晓宇的博客-CSDN博客

注意:此更改仅在当前用户下次打开新会话时生效!

4.4 the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

解决方案详见博文:

ES启动异常:the default discovery settings are unsuitable for production use; at least..._lizz666的博客-CSDN博客_the default discovery settings

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值