首页 技术 正文
技术 2022年11月14日
0 收藏 361 点赞 3,110 浏览 1193 个字

一、确认centos系统是为64位的,x86的不可以安装

1. 下载elasticsearch包

2. 用 tar -zxvf 解压包

3. 增加一个elk用户,elasticsearch7不可用root用户运行

4. 新建用户必须要用 chown -R 用户名 文件夹:进行权限分配

二、配置实现外网访问

ElasticSearch安装及运行的坑

三、处理三个系统配置

1、max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

  每个进程最大同时打开文件数太小,可通过下面2个命令查看当前数量

ulimit -Hn ulimit -Sn

  修改/etc/security/limits.conf文件,增加配置,用户退出后重新登录生效

* soft nofile 65536 * hard nofile 65536

ElasticSearch安装及运行的坑

2、max number of threads [3818] for user [es] is too low, increase to at least [4096]

  问题同上,最大线程个数太低。修改配置文件/etc/security/limits.conf,增加配置

soft    nproc
hard nproc

  可通过命令查看

ulimit -Hu ulimit -Su

ElasticSearch安装及运行的坑

3、max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

  修改/etc/sysctl.conf文件,增加配置vm.max_map_count=262144

vi /etc/sysctl.conf

sysctl -p

  执行命令sysctl -p生效

ElasticSearch安装及运行的坑

正确的limits.conf

ElasticSearch安装及运行的坑

四、处理bootstrap checks failed问题

[1]: 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

这时候继续编辑elasticsearch.yml文件,将 #cluster.initial_master_nodes: [“node-1”, “node-2”] 修改为 cluster.initial_master_nodes: [“node-1”],

ElasticSearch安装及运行的坑

另一种解决办法:

报错:ERROR: bootstrap checks failed

解决:在elasticsearch.yml中配置bootstrap.system_call_filter为false,要在Memory下面:

bootstrap.memory_lock: false

bootstrap.system_call_filter: false

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,088
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,564
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,413
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,186
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,822
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,905