栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Docker中运行elasticsearch排坑

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Docker中运行elasticsearch排坑

Docker中运行elasticsearch排坑
  • 1、vm.max_map_count参数的修改
  • 2、su: cannot open session: Permission denied
  • 3、启动报错

1、vm.max_map_count参数的修改

echo “vm.max_map_count=655360” >> /etc/sysctl.conf
sysctl -p

容器内执行无效,仅能在主机上执行

参考https://stackoverflow.com/questions/41064572/docker-elk-vm-max-map-count

2、su: cannot open session: Permission denied

注释文件/etc/pam.d/su中的“session include system-auth”一行即可。

3、启动报错
ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
ERROR: Elasticsearch did not exit normally - check the logs at /opt/install/elasticsearch-7.13.1/logs/elasticsearch.log

解决方案:

docker run --ulimit nofile=65535:65535
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/313004.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号