目录

问题描述

解决方法

wsl 模式、


问题描述

windows docker 运行elasticsearch 直接就停止了。

docker run --name es01 -p 9200:9200 -p 9300:9300 -it docker.elastic.co/elasticsearch/elasticsearch:8.1.1

查看docker日志

docker logs es01

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

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 virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/docker-cluster.log

解决方法

网络上找到的基本都是说sysctl -w vm.max_map_count=262144货者是/etc/sysctl.conf里添加vm.max_map_count = 262144 。但是在容器里操作后问题依旧,后发现需要操作的是宿主机。然而windows的宿主机是用docker-desktop容器来提供服务的,操作方法如下。

wsl 模式、

注意:这个方法重启电脑或wsl --shutdown停止服务后重启就无效了。

进入宿主机:

wsl -d docker-desktop

输入

sysctl -w vm.max_map_count=262144

wsl 模式 max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]相关推荐

  1. windows的max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    场景 windows使用WLS2作为docker的虚拟子系统,然后启动docker的elasticsearch的集群时出现max virtual memory areas vm.max_map_cou ...

  2. es max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

    max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] /etc ...

  3. 安装es报错: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    启动es时报错max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 解 ...

  4. max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 安装ELK时报

    一.问题背景 当我在K8S的容器中尝试去安装ELK软件过程中,遇到了这个报错:"max virtual memory areas vm.max_map_count [65530] is to ...

  5. [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    ubuntu系统下执行如下命令报错: sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -e ES_MIN_MEM=128m -e ES_M ...

  6. ES启动异常:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    现象 ES启动时出现异常 bin/elasticsearchmax virtual memory areas vm.max_map_count [65530] is too low, increase ...

  7. [问题解决]max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    问题描述 问题解决 1.切换到root用户,修改配置/etc/sysctl.conf文件 文件末尾添加 vm.max_map_count=655360 并执行命令,使其立即生效 sysctl -p 然 ...

  8. Windows下Docker启动Elasticsearch报max virtual memory areas vm.max_map_count [65530] is too low, increase

    解决Windows下Docker启动Elasticsearch报max virtual memory areas vm.max_map_count [65530] is too low, increa ...

  9. Ubuntu elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase to at le

    具体错误信息如下: jiankunking@ubuntu:~/software/elasticsearch$ ./bin/elasticsearch [2017-03-23T18:14:05,880] ...

最新文章

  1. 由PostgreSQL的区域与字符集说起
  2. axure中的拐弯箭头_Axure教程:实现菜单下拉效果
  3. 采购订单审批/取消审批程序(BAPI_PO_RESET_RELEASE、BAPI_PO_RELEASE)
  4. C语言操作符(又称运算符)(1)
  5. jQuery必知要点(一)
  6. 三星note4 9100自动关机问题以及空间不够的问题研究。。。。
  7. android 网卡监听,Android实时监听网络的变化
  8. linux服务器每次重启卡住,运维如何解决Linux服务器重启后命令无法正常使用的问题...
  9. 亲测 asp.net 调用 webservice返回json
  10. jQuery源码分析系列:.domManip() .buildFragment() .clean()
  11. 对比几个空地址“订阅”的结果
  12. KVO 的使用和举例
  13. 关于iOS端引入Myscript 的爬坑过程(pod install error)
  14. 一键seo提交收录_百度网站提交,选择主动提交,还是被动收录?
  15. cv2.imread不能正常读取gif格式图片
  16. 巴西游戏出海攻略,优质游戏出海市场
  17. 编程语言php加密与解密的方法
  18. 项目管理之如何进行项目干系人管理
  19. Git 各指令的本质,真的是通俗易懂!
  20. python语音合成并播放_语音合成篇

热门文章

  1. chrome浏览器的审查元素
  2. python爬取中国知网(中国优秀硕士学位论文数据库)
  3. 如何动态获得view的大小
  4. 为啥吐槽导师的帖子几乎全是理工科?文科的干嘛去了?
  5. 基于C++和Opencv2的虹膜识别工程代码解析
  6. 专科程序员与本科程序员之间有什么区别?薪资待遇差多少?
  7. 蔚来第三代换电站投入试运营,4月向用户大规模开放
  8. JCL Procedure
  9. 打造自己的无人船(1)——树莓派环境搭建
  10. s905各种型号的区别_液压油型号有何区别?液压油32号和46号区别?