admin管理员组

文章数量:1530842

官方网站:

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

本文标签: 详解系统LinuxElasticsearch