您当前的位置: 首页 >  ar

IT之一小佬

暂无认证

  • 3浏览

    0关注

    1192博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Linux系统中安装elasticsearch详解

IT之一小佬 发布时间:2022-09-05 23:47:50 ,浏览量:3

官方网站:

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

关注
打赏
1665675218
查看更多评论
立即登录/注册

微信扫码登录

0.3573s